BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
RangeTool.cs
Go to the documentation of this file.
1namespace BioCore
2{
3 public partial class RangeTool : Form
4 {
5 /* A constructor. */
6 public RangeTool(bool timeEnabled, bool cEnabled, int zmin, int zmax, int timeMin, int timeMax, int cmin, int cmax)
7 {
8 InitializeComponent();
9 zMinBox.Value = zmin;
10 zMaxBox.Value = zmax;
11 if (!timeEnabled)
12 {
13 timeMinBox.Enabled = false;
14 timeMaxBox.Enabled = false;
15 return;
16 }
17 if (!cEnabled)
18 {
19 cMinBox.Enabled = false;
20 cMaxBox.Enabled = false;
21 }
22 timeMinBox.Value = timeMin;
23 timeMaxBox.Value = timeMax;
24
25 cMinBox.Value = cmin;
26 cMaxBox.Value = cmax;
27 }
28
29 public int ZMin
30 {
31 get
32 {
33 return (int)zMinBox.Value;
34 }
35 }
36
37 public int ZMax
38 {
39 get
40 {
41 return (int)zMaxBox.Value;
42 }
43 }
44
45 public int TimeMin
46 {
47 get
48 {
49 return (int)timeMinBox.Value;
50 }
51 }
52
53 public int TimeMax
54 {
55 get
56 {
57 return (int)timeMaxBox.Value;
58 }
59 }
60
61 public int CMin
62 {
63 get
64 {
65 return (int)cMinBox.Value;
66 }
67 }
68
69 public int CMax
70 {
71 get
72 {
73 return (int)cMaxBox.Value;
74 }
75 }
76
81 private void RangeTool_FormClosing(object sender, FormClosingEventArgs e)
82 {
83 this.DialogResult = DialogResult.OK;
84 }
85
86 }
87}
RangeTool(bool timeEnabled, bool cEnabled, int zmin, int zmax, int timeMin, int timeMax, int cmin, int cmax)
Definition RangeTool.cs:6