|
| void | UpdateGUI () |
| | It updates the GUI to reflect the current state of the shutters. More...
|
| |
|
| override void | Dispose (bool disposing) |
| | Clean up any resources being used. More...
|
| |
Definition at line 13 of file Light.cs.
◆ Light()
| BioImager.Light.Light |
( |
| ) |
|
Definition at line 18 of file Light.cs.
19 {
20 InitializeComponent();
21 lightBox.Items.Add(Microscope.TLHalogen);
22 lightBox.Items.Add(Microscope.RLHalogen);
23 lightBox.Items.Add(Microscope.HXP);
24 lightBox.SelectedIndex = 0;
26 }
void UpdateGUI()
It updates the GUI to reflect the current state of the shutters.
◆ Dispose()
| override void BioImager.Light.Dispose |
( |
bool |
disposing | ) |
|
|
protected |
Clean up any resources being used.
- Parameters
-
| disposing | true if managed resources should be disposed; otherwise, false. |
Definition at line 14 of file Light.Designer.cs.
15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }
◆ UpdateGUI()
| void BioImager.Light.UpdateGUI |
( |
| ) |
|
It updates the GUI to reflect the current state of the shutters.
Definition at line 28 of file Light.cs.
29 {
30 int tl = Microscope.TLShutter.GetPosition();
31 int rl = Microscope.RLShutter.GetPosition();
32 int hxp = Microscope.HXPShutter.GetPosition();
33 if (tl == 2)
34 tlShutterBox.Checked = true;
35 else if (tl == 1)
36 tlShutterBox.Checked = false;
37 if (rl == 2)
38 rlShutterBox.Checked = true;
39 else if (rl == 1)
40 rlShutterBox.Checked = false;
41 if (hxp == 2)
42 hxpShutterBox.Checked = true;
43 else if (hxp == 1)
44 hxpShutterBox.Checked = false;
45 percentLabel.Text = trackBar.Value + "%";
46 }
The documentation for this class was generated from the following files: