BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
BioCore.Progress Class Reference
Inheritance diagram for BioCore.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.
 

Properties

string Status [get, set]
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Progress()

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

Definition at line 10 of file Progress.cs.

11 {
12 InitializeComponent();
13 watch.Start();
14 statusLabel.Text = status;
15 fileLabel.Text = file;
16 timer.Start();
17 }

Member Function Documentation

◆ Dispose()

override void BioCore.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 BioCore.Progress.UpdateProgress ( int p)

The function takes an integer as a parameter and sets the value of the progress bar to that integer

Parameters
pThe progress value.

Definition at line 22 of file Progress.cs.

23 {
24 progressBar.Value = p;
25 }

◆ UpdateProgressF()

void BioCore.Progress.UpdateProgressF ( float p)

If the progress is greater than 1, set the progress bar to 100, otherwise set the progress bar to the progress times 100

Parameters
pThe progress value.

Definition at line 30 of file Progress.cs.

31 {
32 if (p > 1)
33 progressBar.Value = 100;
34 else
35 progressBar.Value = (int)(p * 100);
36 }

Property Documentation

◆ Status

string BioCore.Progress.Status
getset

Definition at line 48 of file Progress.cs.

49 {
50 get { return statusLabel.Text; }
51 set { statusLabel.Text = value; }
52 }

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