private void Downjd(object sender, PChangeEventArgs e) { this.toolStripProgress.Visible = true; this.toolStripProgress.Minimum = 0; this.toolStripProgress.Maximum = (int)e.CountSize; Application.DoEvents(); this.toolStripProgress.Value = (int)e.TmpSize; if (e.CountSize == e.TmpSize) { this.toolStripProgress.Visible = false; } }
private void Downjd(object sender, PChangeEventArgs e) { this.toolStrip1.BeginInvoke(new Action(() => { this.toolProess.Visible = true; this.toolProess.Minimum = 0; this.toolProess.Maximum = (int)e.CountSize; this.toolProess.Value = (int)e.TmpSize; if (e.CountSize == e.TmpSize) { this.toolProess.Visible = false; } })); }
private void Downjd(object sender, PChangeEventArgs e) { this.Invoke(new Action(() => { this.pbgUpdata.Visible = true; this.pbgUpdata.Minimum = 0; this.pbgUpdata.Maximum = (int)e.CountSize; this.pbgUpdata.Value = (int)e.TmpSize; if (e.CountSize == e.TmpSize) { this.pbgUpdata.Visible = false; } })); }