private void OnEditButtonClicked() { _locationService.PauseTraking(); _timer.Pause(); isInTicked = false; RightButtonMode = RightButtomModes.Resume; isEditCklicked = true; IsActivated = false; }
public void PauseTimer() { _timer.Pause(); IsPlaying = false; btnPlayPause.ImageMargin = new Padding(3, 0, 0, 0); btnPlayPause.Image = Properties.Resources.Play_104px_4; lblCountdown.Left = (Width - lblCountdown.Width) / 2; _alignedText = false; }
/// <summary> /// 按下計時器按鈕 /// input: 設定倒數幾分鐘 /// </summary> /// <param name="set_time_min"></param> private void Click_on_Timer(int set_time_min, int set_time_sec = 0) { if (CDTimer.IsRunnign) { CDTimer.Pause(); } else if (CDTimer.TimeLeft == new DateTime(1, 1, 1, 0, 59, 59)) { CDTimer.SetTime(set_time_min, set_time_sec); CDTimer.Start(); } else { CDTimer.Start(); } }