private void SetPassTime(int times) { if (this.PassTime.InvokeRequired) { TimesDelegate timesInvoke = new TimesDelegate(SetPassTime); this.PassTime.Invoke(timesInvoke, times); } else { this.PassTime.Text = times.ToString(); } }
private void SetRegisterTime(int times) { if (this.Register_Times.InvokeRequired) { TimesDelegate timesInvoke = new TimesDelegate(SetRegisterTime); this.Register_Times.Invoke(timesInvoke, times); } else { this.Register_Times.Text = times.ToString(); } }