MagicSelect (Builder builder, IntPtr handle, int index)
Definition at line 9 of file MagicSelect.cs .
◆ MagicSelect()
Bio.MagicSelect.MagicSelect
(
Builder builder ,
IntPtr handle ,
int index )
protected
Definition at line 49 of file MagicSelect.cs .
49 : base(handle)
50 {
51 _builder = builder;
52 builder.Autoconnect(this );
53 var ths = new ListStore(typeof(string ));
54
55 ths.AppendValues("Min" );
56 ths.AppendValues("Median" );
57 ths.AppendValues("Median - Min" );
58
59 thBox.Model = ths;
60
61 var renderer = new CellRendererText();
62 thBox.PackStart(renderer, false );
63 thBox.AddAttribute(renderer, "text" , 0);
64 thBox.Active = index;
65 App.ApplyStyles(this );
66 }
◆ Create()
It creates a new instance of the ColorTool class, which is a GTK# widget that allows the user to select a color
Parameters
ColorS The color to be displayed in the color tool.
Returns A new instance of the ColorTool class.
Definition at line 41 of file MagicSelect.cs .
42 {
43 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Magic.glade" , FileMode.Open));
44 return new MagicSelect(builder, builder.GetObject("magicSelect" ).Handle, index);
45 }
◆ Index
int Bio.MagicSelect.Index
get
Definition at line 97 of file MagicSelect.cs .
98 {
99 get
100 {
101 return thBox.Active;
102 }
103 }
◆ Max
Definition at line 93 of file MagicSelect.cs .
94 {
95 get { return (int )maxBox.Value; }
96 }
◆ Min
Definition at line 89 of file MagicSelect.cs .
90 {
91 get { return (int )minBox.Value; }
92 }
◆ Numeric
bool Bio.MagicSelect.Numeric
get
Definition at line 73 of file MagicSelect.cs .
74 {
75 get
76 {
77 return numericBox.Active;
78 }
79 }
◆ Threshold
int Bio.MagicSelect.Threshold
get
Definition at line 81 of file MagicSelect.cs .
82 {
83 get
84 {
85 return (int )numBox.Value;
86 }
87 }
The documentation for this class was generated from the following file: