Exemplo n.º 1
0
        public static WatchRunning Create(UserInterface ui, IDisposable timer)
        {
            var state = new WatchRunning(ui, timer);

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

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

            return(WatchRunning.Create(ui, timer));
        }
Exemplo n.º 3
0
 public WatchState Hold() => WatchRunning.Create(ui, timer);