Example #1
0
 public void SetValue(double Current)
 {
     PgBCurrent.BeginInvoke(new MethodInvoker(delegate() { PgBCurrent.Value = (int)(Current * 100); }));
 }
Example #2
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; }));
 }