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