public ReminderWindow(ReminderDispatcher reminderDispatcher) { InitializeComponent(); _reminderDispatcher = reminderDispatcher; _viewModel = (ReminderWindowViewModel) DataContext; CloseAll += ReminderWindowCloseAll; }
public void ApplicationReminderTest() { var target = new ReminderDispatcher(); target.DispatchReminder(new ReminderInfo { Subject = "Some Meeting", Location = "CH7-311", Body = "Body", Duration = TimeSpan.FromHours(1), StartTime = DateTime.Now + TimeSpan.FromMinutes(10) }); Thread.Sleep(1000); target.DispatchReminder(new ReminderInfo { Subject = "Some Other Meeting", Location = "CH7-311", Body = "Body", Duration = TimeSpan.FromHours(1), StartTime = DateTime.Now + TimeSpan.FromMinutes(10) }); target.Wait(); }