BioImager  5.0.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
RangeTool.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Threading.Tasks;
9using System.Windows.Forms;
10
11namespace BioImager
12{
13 public partial class RangeTool : Form
14 {
15 public RangeTool(bool timeEnabled,bool cEnabled,int zmin,int zmax,int timeMin, int timeMax,int cmin,int cmax)
16 {
17 InitializeComponent();
18 zMinBox.Value = zmin;
19 zMaxBox.Value = zmax;
20 if (!timeEnabled)
21 {
22 timeMinBox.Enabled = false;
23 timeMaxBox.Enabled = false;
24 return;
25 }
26 if(!cEnabled)
27 {
28 cMinBox.Enabled = false;
29 cMaxBox.Enabled = false;
30 }
31 timeMinBox.Value = timeMin;
32 timeMaxBox.Value = timeMax;
33
34 cMinBox.Value = cmin;
35 cMaxBox.Value = cmax;
36 }
37
38 public int ZMin
39 {
40 get
41 {
42 return (int)zMinBox.Value;
43 }
44 }
45
46 public int ZMax
47 {
48 get
49 {
50 return (int)zMaxBox.Value;
51 }
52 }
53
54 public int TimeMin
55 {
56 get
57 {
58 return (int)timeMinBox.Value;
59 }
60 }
61
62 public int TimeMax
63 {
64 get
65 {
66 return (int)timeMaxBox.Value;
67 }
68 }
69
70 public int CMin
71 {
72 get
73 {
74 return (int)cMinBox.Value;
75 }
76 }
77
78 public int CMax
79 {
80 get
81 {
82 return (int)cMaxBox.Value;
83 }
84 }
85
86 private void RangeTool_FormClosing(object sender, FormClosingEventArgs e)
87 {
88 this.DialogResult = DialogResult.OK;
89 }
90
91 }
92}
RangeTool(bool timeEnabled, bool cEnabled, int zmin, int zmax, int timeMin, int timeMax, int cmin, int cmax)
Definition RangeTool.cs:15