public MainPresenter(IApplicationController applicationController, IMainForm mainform) { this.applicationController = applicationController; this.mainform = mainform; pomodoro = new Pomodoro(); mainform.OnTimerStart += OnStartEvent; mainform.OnTimerTick += OnTickEvent; mainform.OnConfigOpen += OnConfigOpenEvent; }
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); }