Ejemplo n.º 1
0
        /// <summary>
        /// Handles the Click event of the startTimerButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void startTimerButton_Click(object sender, EventArgs e)
        {
            var timerType = _timerService.GetTimerType(sender);

            _timerService.ManageTimerButtons(timerType, TimerActionType.Start);

            if (timerType == TimerType.TimerBeforePlaySound && TimePeriod > 0)
            {
                _timerService.ManageTimerButtons(TimerType.Timer, TimerActionType.Start);
            }
        }