private void NotificationManagerOnNotify(object sender, ReminderNotifyEventArgs e) { ApplicationInstanceProvider.Instance.Dispatcher.Invoke( () => { var notificationViewModel = ViewModelFactory.Resolve<NotificationViewModel>(); notificationViewModel.NotificationTitle = e.Reminder.Title; notificationViewModel.Show(); }); }
private void NotificationManagerOnNotify(object sender, ReminderNotifyEventArgs e) { _unitOfWork.AddOrUpdate(e.Reminder); _unitOfWork.Commit(); }