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

Public Member Functions

 Progress (string file, string status)
 
void UpdateProgress (int p)
 
void UpdateProgressF (float p)
 

Protected Member Functions

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

Properties

string Status [get, set]
 
float ProgressValue [get, set]
 

Detailed Description

Definition at line 14 of file Progress.cs.

Constructor & Destructor Documentation

◆ Progress()

BioImager.Progress.Progress ( string  file,
string  status 
)

Definition at line 17 of file Progress.cs.

18 {
19 InitializeComponent();
20 watch.Start();
21 statusLabel.Text = status;
22 fileLabel.Text = file;
23 timer.Start();
24 }

Member Function Documentation

◆ Dispose()

override void BioImager.Progress.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 Progress.Designer.cs.

15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }

◆ UpdateProgress()

void BioImager.Progress.UpdateProgress ( int  p)

Definition at line 36 of file Progress.cs.

37 {
38 progressBar.Value = p;
39 }

◆ UpdateProgressF()

void BioImager.Progress.UpdateProgressF ( float  p)

Definition at line 40 of file Progress.cs.

41 {
42 if (p * 100 > progressBar.Maximum)
43 return;
44 progressBar.Value = (int)(p * 100);
45 }

Property Documentation

◆ ProgressValue

float BioImager.Progress.ProgressValue
getset

Definition at line 30 of file Progress.cs.

31 {
32 get { return progressBar.Value; }
33 set { progressBar.Value = (int)(value * 100); }
34 }

◆ Status

string BioImager.Progress.Status
getset

Definition at line 25 of file Progress.cs.

26 {
27 get { return statusLabel.Text; }
28 set { statusLabel.Text = value; }
29 }

The documentation for this class was generated from the following files: