private void btStart_Click(object sender, EventArgs e) { isCancel = false; tmDefault.Enabled = true; tmDefault.Start(); #region setControl var clsInvoker = new clsInvoker(); clsInvoker.setButton(btStart, false); clsInvoker.setButton(btStop, true); clsInvoker.setPictureBox(anWaiting, true); #endregion }
private void btStop_Click(object sender, EventArgs e) { isCancel = true; syncTimer = 0; tmDefault.Stop(); tmDefault.Enabled = false; bwDefault.CancelAsync(); lblSyncTimer.Text = ""; #region setControl var clsInvoker = new clsInvoker(); clsInvoker.setButton(btStart, true); clsInvoker.setButton(btStop, false); clsInvoker.setPictureBox(anWaiting, false); #endregion }