// Stop timer button should update the database based on the current timer, // stop the timer ticking, // clear the timerSecs variable for the next timer session, // and enable the start button / disable itself private void btnStopTimer_Click(object sender, EventArgs e) { //if (TimerController.checkForTask(timedTaskID) == null) TimerController.AddActivity(timedTaskID, timerSecs); //else // TimerController.updateTaskAlreadyInActivities(timedTaskID, timerSecs); taskTimer.Stop(); btnStopTimer.Enabled = false; btnStartTimer.Enabled = true; btnPause.Enabled = false; this.seconds = 0; this.minutes = 0; this.timerSecs = 0; }