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