private void Button_Click_DecrementNotificationCount(object sender, RoutedEventArgs e)
 {
     if (NotificationCountEvent != null)
     {
         NotificationCountEvent.Invoke(null, new NotificationCountEvent()
         {
             Amount = -1,
         });
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// If another user controller wants to print to the console use a event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="printToConsoleEvent"></param>
 private void OnAddNotification(object sender, NotificationCountEvent notificationCountEvent)
 {
     TaskbarItemOverlayViewModel.Count += notificationCountEvent.Amount;
 }