Ejemplo n.º 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();
         });
 }
Ejemplo n.º 2
0
 private void NotificationManagerOnNotify(object sender, ReminderNotifyEventArgs e)
 {
     _unitOfWork.AddOrUpdate(e.Reminder);
     _unitOfWork.Commit();
 }