Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            var notifyIconService = new NotifyIconHandler(this);
            var scheduleService   = new ScheduleService();

            DataContext = new ViewModel(notifyIconService, scheduleService);
        }
Ejemplo n.º 2
0
 public ViewModel(NotifyIconHandler notifyIconHandler, ScheduleService scheduleService)
 {
     State            = States.Started;
     _notifyIcon      = notifyIconHandler;
     _scheduleService = scheduleService;
     _model           = scheduleService.GetEmptyDaySchedule();
     ConfigureTimer();
     ConfigureNotifyIcon();
 }