1 |
william |
10 |
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 |
|
|
} |