aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/ExperienceShifter.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-16 17:14:18 -0500
committerMichael <[email protected]>2017-02-16 17:14:23 -0500
commite255c7fd47c2f6e2e12befdc8808e9db8cc8f0d2 (patch)
tree4cac94bffe9d322899ee047d86b8a3f2ef57f419 /ShiftOS.WinForms/Applications/ExperienceShifter.cs
parent781351aefb5d4fe7d9770568506345156b605b9a (diff)
downloadshiftos_thereturn-e255c7fd47c2f6e2e12befdc8808e9db8cc8f0d2.tar.gz
shiftos_thereturn-e255c7fd47c2f6e2e12befdc8808e9db8cc8f0d2.tar.bz2
shiftos_thereturn-e255c7fd47c2f6e2e12befdc8808e9db8cc8f0d2.zip
stuff
Diffstat (limited to 'ShiftOS.WinForms/Applications/ExperienceShifter.cs')
-rw-r--r--ShiftOS.WinForms/Applications/ExperienceShifter.cs84
1 files changed, 84 insertions, 0 deletions
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();
+ }
+ }
+}