/[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 22:14:15	11
@@ -15,5 +15,59 @@
         {
             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);
+            }
+
+
+            btnShutdown.OnClickEvent += new EventHandler(btnShutdown_Click);
+            btnRestart.OnClickEvent += new EventHandler(btnRestart_Click);
+            btnLogoff.OnClickEvent += new EventHandler(btnLogoff_Click);
+            btnLockScreen.OnClickEvent += new EventHandler(btnLockScreen_Click);
+            btnSleep.OnClickEvent += new EventHandler(btnSleep_Click);
+            btnClose.OnClickEvent += new EventHandler(btnClose_Click);
+        }
+
+        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)
+        {
+            this.Close();
+        }
+
+
+    
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22