Exemple #1
0
 public BasicController(ablemusicContext ablemusicContext, ILogger <Object> log)
 {
     _ablemusicContext = ablemusicContext;
     _log = log;
     _notificationObservable = new NotificationObservable();
     _notificationObservable.SendNotification += SendNotification;
 }
Exemple #2
0
        private void ClientServiceOnRecievedNotificationEvent(NotificationObservable notificationObservable)
        {
            Current.Dispatcher.Invoke(delegate
            {
                var notification = new NotificationControl
                {
                    Sender         = notificationObservable.Sender.Substring(5) + " - " + notificationObservable.DateSent,
                    Subject        = notificationObservable.Subject,
                    NotificationId = notificationObservable.Id
                };

                _notifyIcon.ShowCustomBalloon(notification, PopupAnimation.Slide, 6000);
                _clientService.ConfirmNotified(notificationObservable.Id);
            });
        }