예제 #1
0
파일: FrmQuery.cs 프로젝트: Ghcsm/Wh_Fzg
 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;
     }
 }
예제 #2
0
파일: FrmZchk.cs 프로젝트: Ghcsm/Wh_Fzg
 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;
         }
     }));
 }
예제 #3
0
 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;
         }
     }));
 }