BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
MagicSelect.cs
Go to the documentation of this file.
1namespace BioCore
2{
3 public partial class MagicSelect : Form
4 {
5 /* A constructor. */
6 public MagicSelect(int index)
7 {
8 InitializeComponent();
9 thBox.SelectedIndex = index;
10 }
11 private bool numeric = false;
12
13 /* A property. */
14 public bool Numeric
15 {
16 get
17 {
18 return numeric;
19 }
20 }
21
22 public int Threshold
23 {
24 get
25 {
26 return (int)numBox.Value;
27 }
28 }
29
30 public int Min
31 {
32 get { return (int)minBox.Value; }
33 }
34 public int Max
35 {
36 get { return (int)maxBox.Value; }
37 }
38 public int Index
39 {
40 get
41 {
42 return thBox.SelectedIndex;
43 }
44 }
49 private void numericBox_CheckedChanged(object sender, EventArgs e)
50 {
51 numeric = numericBox.Checked;
52 }
53
58 private void okBut_Click(object sender, EventArgs e)
59 {
60 DialogResult = DialogResult.OK;
61 }
62 }
63}
MagicSelect(int index)
Definition MagicSelect.cs:6