Exemple #1
0
        public static WatchRunning Create(UserInterface ui, IDisposable timer)
        {
            var state = new WatchRunning(ui, timer);

            ui.EnableStartStop();
            ui.DisableReset();
            ui.EnableHold();

            return(state);
        }
Exemple #2
0
        public WatchState StartStop(Action <TimeSpan> showTime)
        {
            var timer = GlobalSettings.Timer.Start(TimeSpan.FromSeconds(1), showTime);

            return(WatchRunning.Create(ui, timer));
        }
Exemple #3
0
 public WatchState Hold() => WatchRunning.Create(ui, timer);