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

Contents of /trunk/NexusPowerControl/ThemeButton.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Sat Oct 22 21:35:13 2011 UTC (8 years, 1 month ago) by william
File size: 1043 byte(s)
add buttons to main form and style them

1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Drawing;
5 using System.Data;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9
10 namespace NexusPowerControl
11 {
12 [DefaultEvent("Click")]
13 public partial class ThemeButton : UserControl
14 {
15 public ThemeButton()
16 {
17 InitializeComponent();
18 this.Image = NexusPowerControl.Properties.Resources.missing;
19 this.Text = "template";
20 }
21 [Browsable(true)]
22 [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
23 public Image Image
24 {
25 get { return picImage.Image; }
26 set { picImage.Image = value; }
27 }
28
29 [Browsable(true)]
30 [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
31 public override string Text
32 {
33 get { return lblText.Text; }
34 set { lblText.Text = value; }
35 }
36
37 }
38 }

  ViewVC Help
Powered by ViewVC 1.1.22