public MainWindow() { InitializeComponent(); var notifyIconService = new NotifyIconHandler(this); var scheduleService = new ScheduleService(); DataContext = new ViewModel(notifyIconService, scheduleService); }
public ViewModel(NotifyIconHandler notifyIconHandler, ScheduleService scheduleService) { State = States.Started; _notifyIcon = notifyIconHandler; _scheduleService = scheduleService; _model = scheduleService.GetEmptyDaySchedule(); ConfigureTimer(); ConfigureNotifyIcon(); }