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