示例#1
0
 private void ProtectForwardLabel4(int position, int amount)
 {
     if (this.label14.InvokeRequired)
     {
         dForwardProgressBar s = new dForwardProgressBar(ProtectForwardLabel4);
         this.Invoke(s, new object[] { position, amount });
     }
     else
     {
         this.label14.Text = String.Format("Найдено {0} вариантов из {1}", position, amount);
     }
 }
示例#2
0
 private void ProtectForwardProgressBar2(int position, int amount)
 {
     if (this.progressBar2.InvokeRequired)
     {
         dForwardProgressBar s = new dForwardProgressBar(ProtectForwardProgressBar2);
         this.Invoke(s, new object[] { position, amount });
     }
     else
     {
         if (position == amount)
         {
             button7.Enabled = true;
             timer2.Stop();
         }
         this.progressBar2.Maximum = amount;
         this.progressBar2.Value   = position;
     }
 }