BioGTK  5.1.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images.
Loading...
Searching...
No Matches
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]
 

Constructor & Destructor Documentation

◆ Progress()

BioGTK.Progress.Progress ( Builder  builder,
IntPtr  handle,
string  title,
string  status,
string  state 
)
inlineprotected
86 : base(handle)
87 {
88 _builder = builder;
89 builder.Autoconnect(this);
90 this.Title = title;
91 this.statusLabel.Text = status;
92 this.progLabel.Text = state;
93 App.ApplyStyles(this);
94 }

Member Function Documentation

◆ Create()

static Progress BioGTK.Progress.Create ( string  title,
string  status,
string  state 
)
inlinestatic
79 {
80 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Progress.glade", FileMode.Open));
81 return new Progress(builder, builder.GetObject("progress").Handle, title, status, state);
82 }
Progress(Builder builder, IntPtr handle, string title, string status, string state)
Definition Progress.cs:86

Property Documentation

◆ ProgressValue

double BioGTK.Progress.ProgressValue
getset
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 progressBar.Fraction = value;
33 statusLabel.Text = BioImage.status;
34 });
35 }
36 }

◆ Status

string BioGTK.Progress.Status
getset
52 {
53 get { return statusLabel.Text; }
54 set
55 {
56 // update progress bar on main UI thread
57 Application.Invoke(delegate
58 {
59 statusLabel.Text = value;
60 });
61 }
62 }

◆ Text

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

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