public void UpdateLabel(string Message)
 {
     if (B01CountDown.InvokeRequired)
     {
         B01CountDown.Invoke((MethodInvoker)(() =>
         {
             B01CountDown.Text = Message;
         }));
     }
 }
示例#2
0
 private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
 {
     if (B01CountDown.InvokeRequired)
     {
         B01CountDown.Invoke((MethodInvoker)(() =>
         {
             B01CountDown.Text = TimeCounter.TimerCount.ToString();
         }));
     }
 }