示例#1
0
        public MainPresenter(IApplicationController applicationController, IMainForm mainform)
        {
            this.applicationController = applicationController;
            this.mainform = mainform;
            pomodoro      = new Pomodoro();

            mainform.OnTimerStart += OnStartEvent;
            mainform.OnTimerTick  += OnTickEvent;
            mainform.OnConfigOpen += OnConfigOpenEvent;
        }
示例#2
0
        public MainPresenter(IApplicationController applicationController, IMainForm mainform)
        {
            this.applicationController = applicationController;
            this.mainform = mainform;
            pomodoro = new Pomodoro();

            mainform.OnTimerStart += OnStartEvent;
            mainform.OnTimerTick += OnTickEvent;
            mainform.OnConfigOpen += OnConfigOpenEvent;
        }
示例#3
0
        public void CreatePomodoro()
        {
            pomodoro = new Pomodoro();

            int task = 2;
            int shortBreak = 1;
            int repeat = 2;
            int longBreak= 3;

            var pomodoroConfig = new PomodoroConfig(task, shortBreak, repeat, longBreak);

            pomodoro.Configure(pomodoroConfig);
        }