BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
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. More...
 

Protected Member Functions

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

Detailed Description

Definition at line 13 of file Light.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: