using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
using ShiftUI;
using System.IO.Compression;
using System.Drawing;
using Newtonsoft.Json;
using System.Security.Cryptography;
using System.Diagnostics;
using System.Net;
using System.ComponentModel;
using System.Net.NetworkInformation;
namespace ShiftOS
{
public static class Consts
{
public const string Version = "0.1.2";
}
public class Settings
{
public int MusicVolume { get; set; }
}
public class PanelButton
{
///
/// Initializes a new instance of a Panel Button model.
///
/// The text displayed on the button.
/// The icon displayed on the button.
/// The form that is managed by the button.
public PanelButton(string name, Image icon, ref Form formToManage)
{
Name = name;
Icon = icon;
FormToManage = formToManage;
}
public string Name { get; set; }
public Image Icon { get; set; }
public Form FormToManage { get; set; }
}
public class ApplauncherItem
{
public ApplauncherItem(string name, Image icn, string lua, bool disp)
{
Name = name;
Icon = icn;
Lua = lua;
Display = disp;
}
public string Name { get; set; }
public Image Icon { get; set; }
public string Lua { get; set; } //ShiftCode that decides what ShiftOS will do when the item is clicked.
public bool Display { get; set; }
}
public class ModApplauncherItem
{
public string Name { get; set; }
public string Icon { get; set; }
///
/// Legacy mod AL entries for compatibilty
///
public string ShiftCode { get; set; } //ShiftCode that decides what ShiftOS will do when the item is clicked.
public string Lua { get; set; }
public Form FormToOpen { get; set; } //If ShiftCode == "openForm", ShiftOS will open this form.
public bool Display { get; set; }
public string AppDirectory { get; set; }
}
public class API
{
public static Dictionary