Example #1
0
 private void BtnHide_Click(object sender, EventArgs e)
 {
     Hide();
     PgBTotal.BeginInvoke(new MethodInvoker(delegate() { PgBTotal.Value = 0; }));
     PgBCurrent.BeginInvoke(new MethodInvoker(delegate() { PgBCurrent.Value = 0; }));
 }
Example #2
0
 public void SetValue(double Total, double Current)
 {
     PgBTotal.BeginInvoke(new MethodInvoker(delegate() { PgBTotal.Value = (int)(Total * 100); }));
     PgBCurrent.BeginInvoke(new MethodInvoker(delegate() { PgBCurrent.Value = (int)(Current * 100); }));
 }