From e255c7fd47c2f6e2e12befdc8808e9db8cc8f0d2 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 16 Feb 2017 17:14:18 -0500 Subject: stuff --- ShiftOS.WinForms/Applications/ExperienceShifter.cs | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 ShiftOS.WinForms/Applications/ExperienceShifter.cs (limited to 'ShiftOS.WinForms/Applications/ExperienceShifter.cs') diff --git a/ShiftOS.WinForms/Applications/ExperienceShifter.cs b/ShiftOS.WinForms/Applications/ExperienceShifter.cs new file mode 100644 index 0000000..82706e8 --- /dev/null +++ b/ShiftOS.WinForms/Applications/ExperienceShifter.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +using ShiftOS.Engine; + +namespace ShiftOS.WinForms.Applications +{ + [Launcher("Experience Shifter", false, "", "Customization")] + [DefaultTitle("Experience Shifter")] + [DefaultIcon("iconShifter")] + public partial class ExperienceShifter : UserControl, IShiftOSWindow + { + public ExperienceShifter() + { + InitializeComponent(); + } + + private string currentUI = "desktop"; + + public void SetupUI() + { + switch (currentUI) + { + case "desktop": + pnldesktop.BringToFront(); + PopulateDesktops(); + break; + case "applauncher": + pnlapplauncher.BringToFront(); + PopulateLaunchers(); + break; + } + } + + public void PopulateDesktops() + { + lbdesktops.Items.Clear(); + lbdesktops.Items.Add("ShiftOS Desktop"); + } + + public void PopulateLaunchers() + { + lblaunchers.Items.Clear(); + lbdesktops.Items.Add("ShiftOS App Launcher"); + } + + public void OnLoad() + { + SetupUI(); + } + + public void OnSkinLoad() + { + } + + public bool OnUnload() + { + return true; + } + + public void OnUpgrade() + { + } + + private void desktopToolStripMenuItem_Click(object sender, EventArgs e) + { + currentUI = "desktop"; + SetupUI(); + } + + private void appLauncherToolStripMenuItem_Click(object sender, EventArgs e) + { + currentUI = "applauncher"; + SetupUI(); + } + } +} -- cgit v1.2.3