/[NexusPowerControl]/trunk/NexusPowerControl/Form1.cs
ViewVC logotype

Diff of /trunk/NexusPowerControl/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/NexusPowerControl/Form1.cs	2011/10/21 21:50:13	4
+++ trunk/NexusPowerControl/Form1.cs	2011/10/22 21:35:13	10
@@ -15,5 +15,49 @@
         {
             InitializeComponent();
         }
+
+        private void Form1_Load(object sender, EventArgs e)
+        {
+            // load theme
+            ThemeLoader loader = new ThemeLoader();           
+            loader.LoadThemeOrDefault(NexusPowerControl.Properties.Settings.Default.ActiveThemeName);
+            ThemeLoader.ThemeDefinition theme = loader.GetLoadedTheme();
+
+            if (theme.ThemeLoaded)
+            {
+                pic_main.Image = Image.FromFile(theme.MainImage);
+            }
+
+        }
+
+        private void btnShutdown_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void btnRestart_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void btnLogoff_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void btnLockScreen_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void btnSleep_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void btnClose_Click(object sender, EventArgs e)
+        {
+
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22