C# Class Btl.Models.TimerModel

Inheritance: ITimerModel
Show file Open project: barrylapthorn/countdown_timer

Public Methods

Method Description
Reset ( ) : void

Stop the current countdown and reset.

Start ( ) : void

Start the countdown.

Stop ( ) : void

Stop the countdown.

TimerModel ( ) : System

Construct a timer with a default duration of 25 minutes. This is a 'pomodoro' time span.

TimerModel ( System.TimeSpan duration ) : System

Create a timer of the specified duration.

Private Methods

Method Description
OnCompleted ( ) : void

Triggers the Completed event.

OnDispatcherTimerTick ( ) : void

Handle the ticking of the system timer.

OnReset ( ) : void

Triggers the TimerReset event

OnStarted ( ) : void

Triggers the Started event.

OnStopped ( ) : void

Triggers the Stopped event.

OnTick ( ) : void

Triggers the Tick event.

Method Details

Reset() public method

Stop the current countdown and reset.
public Reset ( ) : void
return void

Start() public method

Start the countdown.
public Start ( ) : void
return void

Stop() public method

Stop the countdown.
public Stop ( ) : void
return void

TimerModel() public method

Construct a timer with a default duration of 25 minutes. This is a 'pomodoro' time span.
public TimerModel ( ) : System
return System

TimerModel() public method

Create a timer of the specified duration.
public TimerModel ( System.TimeSpan duration ) : System
duration System.TimeSpan
return System