示例#1
0
            public void Apply(TimerWindow window, Duration remainingTime)
            {
                if (window == null)
                {
                    return;
                }

                window.UpdateTitle("Pomodoro Completed");
                window.UpdateColorScheme(TimerWindow.DarkGray);
                window.UpdateTimeDisplay(Duration.Zero.ToTimeString());
                window.SetTimerAction($"Start {pomodoroEngine.SuggestedBreakType.GetName()}", StartTimer);
            }
示例#2
0
            public void Apply(TimerWindow window, Duration remainingTime)
            {
                if (window == null)
                {
                    return;
                }

                window.UpdateTitle(title);
                window.UpdateColorScheme(TimerWindow.DarkGray);
                window.UpdateTimeDisplay(remainingTime.ToTimeString());
                window.SetTimerAction("Start Pomodoro", StartTimer);
            }
示例#3
0
            public void Apply(TimerWindow window, Duration remainingTime)
            {
                if (window == null)
                {
                    return;
                }

                window.UpdateTitle("Long Break");
                window.UpdateColorScheme(TimerWindow.Blue);
                window.UpdateTimeDisplay(remainingTime.ToTimeString());
                window.SetTimerAction("Interrupt", pomodoroEngine.StopTimer);
            }