예제 #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);
            }