/[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/22 21:35:13	10
+++ trunk/NexusPowerControl/Form1.cs	2011/10/22 22:14:15	11
@@ -28,6 +28,13 @@
                 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)
@@ -57,7 +64,10 @@
 
         private void btnClose_Click(object sender, EventArgs e)
         {
-
+            this.Close();
         }
+
+
+    
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22