BioImager  4.9.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
BioImager.Light Class Reference
Inheritance diagram for BioImager.Light:

Public Member Functions

void UpdateGUI ()
 It updates the GUI to reflect the current state of the shutters.
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.
 

Detailed Description

Definition at line 3 of file Light.Designer.cs.

Constructor & Destructor Documentation

◆ 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;
25 UpdateGUI();
26 }
void UpdateGUI()
It updates the GUI to reflect the current state of the shutters.
Definition Light.cs:28

Member Function Documentation

◆ Dispose()

override void BioImager.Light.Dispose ( bool disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue 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: