public StoppedState(CoreTimer coreTimer) : base(coreTimer) { }
public TomatoCompletedState(CoreTimer coreTimer) : base(coreTimer) { }
public InterruptedState(CoreTimer coreTimer) : base(coreTimer) { }
public BreakRunningState(CoreTimer coreTimer) : base(coreTimer) { }
public MiniTimer(CoreTimer timer) : this() { this.timer = timer; BindToTimerEvents(); }
public TransitionClassBase(CoreTimer coreTimer) : base(coreTimer) { }
public TomatoRunningState(CoreTimer coreTimer) : base(coreTimer) { }
void InitTomatoTimer() { // Load Timings from Configuration. int tomatoLen = Current.User.TomatoTime; int breakLen = Current.User.BreakTime; int setBreakLen = Current.User.SetBreakTime; timer = new Timer(new TimerComponent()) { TomatoTimeSpan = new TimeSpan(0, 0, tomatoLen, 0), BreakTimeSpan = new TimeSpan(0, 0, breakLen, 0), SetBreakTimeSpan = new TimeSpan(0, 0, setBreakLen, 0) }; #if DEBUG var time = new TimeSpan(0, 0, 0, 10); timer.TomatoTimeSpan = time; timer.BreakTimeSpan = time; timer.SetBreakTimeSpan = time; #endif timer.TomatoStarted += timer_TomatoStarted; timer.TomatoEnded += timer_TomatoEnded; timer.BreakStarted += timer_BreakStarted; timer.BreakEnded += timer_BreakEnded; timer.SetBreakStarted += timer_SetBreakStarted; timer.SetBreakEnded += timer_SetBreakEnded; timer.StateChangeFailed += timer_StateChangeFailed; timer.Interrupted += timer_Interrupted; timer.Tick += timer_Tick; }