forked from HumMod/editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
T_Open.CS
50 lines (37 loc) · 980 Bytes
/
T_Open.CS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Model Editor / T_Open
Created : 2011-04-05
Last Modified : 2011-04-22
Author : Tom Coleman
Copyright : 2011-2011
By : University of Mississippi Medical Center */
using System ;
using System.Drawing ;
using System.Windows.Forms ;
namespace ModelEditor
{ public class T_Open : ToolBarButton
{ private static T_Open This ;
public T_Open (int Index)
{ This = this ;
ImageIndex = Index ;
ToolTipText = "Open" ;
Tag = new ToolBar_Delegate (Clicked) ;
Enabled = true ;
}
public Bitmap GetBMP ()
{ Bitmap BMP = ResourceManager.GetBitmap ("Open") ;
Color Corner = BMP.GetPixel (0,0) ;
BMP.MakeTransparent (Corner) ;
return BMP ;
}
public void Clicked ()
{ IO_Open.Open () ;
}
public static void TurnOn ()
{ This.Enabled = true ;
}
public static void TurnOff ()
{ This.Enabled = false ;
}
}
}
/* End */