ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/NexusPowerControl/trunk/NexusPowerControl/Form1.cs
Revision: 10
Committed: Sat Oct 22 21:35:13 2011 UTC (11 years, 7 months ago) by william
File size: 1414 byte(s)
Log Message:
add buttons to main form and style them

File Contents

# Content
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9
10 namespace NexusPowerControl
11 {
12 public partial class Form1 : Form
13 {
14 public Form1()
15 {
16 InitializeComponent();
17 }
18
19 private void Form1_Load(object sender, EventArgs e)
20 {
21 // load theme
22 ThemeLoader loader = new ThemeLoader();
23 loader.LoadThemeOrDefault(NexusPowerControl.Properties.Settings.Default.ActiveThemeName);
24 ThemeLoader.ThemeDefinition theme = loader.GetLoadedTheme();
25
26 if (theme.ThemeLoaded)
27 {
28 pic_main.Image = Image.FromFile(theme.MainImage);
29 }
30
31 }
32
33 private void btnShutdown_Click(object sender, EventArgs e)
34 {
35
36 }
37
38 private void btnRestart_Click(object sender, EventArgs e)
39 {
40
41 }
42
43 private void btnLogoff_Click(object sender, EventArgs e)
44 {
45
46 }
47
48 private void btnLockScreen_Click(object sender, EventArgs e)
49 {
50
51 }
52
53 private void btnSleep_Click(object sender, EventArgs e)
54 {
55
56 }
57
58 private void btnClose_Click(object sender, EventArgs e)
59 {
60
61 }
62 }
63 }