18 private Builder _builder;
21 public double ProgressValue
25 return progressBar.Fraction;
30 Application.Invoke(delegate
33 progressBar.Fraction = value;
35 progressBar.Fraction = value / 100;
42 get {
return progLabel.Text; }
46 Application.Invoke(delegate
48 progLabel.Text = value;
55 get {
return statusLabel.Text; }
59 Application.Invoke(delegate
61 statusLabel.Text = value;
65#pragma warning disable 649
68 private ProgressBar progressBar;
70 private Label progLabel;
72 private Label statusLabel;
73#pragma warning restore 649
77 #region Constructors / Destructors
80 public static Progress Create(
string title,
string status,
string state)
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);
88 protected Progress(Builder builder, IntPtr handle,
string title,
string status,
string state) : base(handle)
91 builder.Autoconnect(
this);
93 this.statusLabel.Text = status;
94 this.progLabel.Text = state;
95 App.ApplyStyles(
this);