BioGTK  6.0.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions
BioGTK.Progress Class Reference
Inheritance diagram for BioGTK.Progress:

Static Public Member Functions

static Progress Create (string title, string status, string state)
 

Protected Member Functions

 Progress (Builder builder, IntPtr handle, string title, string status, string state)
 

Properties

double ProgressValue [get, set]
 
string Text [get, set]
 
string Status [get, set]
 

Detailed Description

Definition at line 15 of file Progress.cs.

Constructor & Destructor Documentation

◆ Progress()

BioGTK.Progress.Progress ( Builder builder,
IntPtr handle,
string title,
string status,
string state )
protected

Definition at line 88 of file Progress.cs.

88 : base(handle)
89 {
90 _builder = builder;
91 builder.Autoconnect(this);
92 this.Title = title;
93 this.statusLabel.Text = status;
94 this.progLabel.Text = state;
95 App.ApplyStyles(this);
96 }

Member Function Documentation

◆ Create()

static Progress BioGTK.Progress.Create ( string title,
string status,
string state )
static

Definition at line 80 of file Progress.cs.

81 {
82 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Progress.glade", FileMode.Open));
83 return new Progress(builder, builder.GetObject("progress").Handle, title, status, state);
84 }

Property Documentation

◆ ProgressValue

double BioGTK.Progress.ProgressValue
getset

Definition at line 21 of file Progress.cs.

22 {
23 get
24 {
25 return progressBar.Fraction;
26 }
27 set
28 {
29 // update progress bar on main UI thread
30 Application.Invoke(delegate
31 {
32 if(value <= 1)
33 progressBar.Fraction = value;
34 else
35 progressBar.Fraction = value / 100;
36 });
37 }
38 }

◆ Status

string BioGTK.Progress.Status
getset

Definition at line 53 of file Progress.cs.

54 {
55 get { return statusLabel.Text; }
56 set
57 {
58 // update progress bar on main UI thread
59 Application.Invoke(delegate
60 {
61 statusLabel.Text = value;
62 });
63 }
64 }

◆ Text

string BioGTK.Progress.Text
getset

Definition at line 40 of file Progress.cs.

41 {
42 get { return progLabel.Text; }
43 set
44 {
45 // update progress bar on main UI thread
46 Application.Invoke(delegate
47 {
48 progLabel.Text = value;
49 });
50 }
51 }

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