Ejemplo n.º 1
0
        private void CreateNotification(Message message)
        {
            listSource.Insert(0, message.ToString());

            BalloonBox balloon = new BalloonBox();
            balloon.BalloonText = "GitHub Notification";
            balloon.BalloonMessage = message.ToString();
            balloon.AdditionalClickEvent = new Task(() => Process.Start(message.Url));

            DNotificationIcon.ShowCustomBalloon(balloon, PopupAnimation.Slide, 6000);
        }
Ejemplo n.º 2
0
        private void MessageReceived(Message message)
        {
            try
            {
                listNotifications.Dispatcher.BeginInvoke(new Action(delegate()
                {
                    CreateNotification(message);
                }));

            }
            catch (Exception ex)
            {
                Debug.WriteLine("Received= " + message.ToString());
                Debug.WriteLine(ex.ToString());
            }
        }
Ejemplo n.º 3
0
 private void MessageReceived(Message message)
 {
     try
     {
         CreateNotificationFromDispatcher(message);
     }
     catch (Exception ex)
     {
         Debug.WriteLine("Received= " + message.ToString());
         Debug.WriteLine(ex.ToString());
     }
 }
Ejemplo n.º 4
0
        private void _CreateNotification(Message message)
        {
            _listSource.Insert(0, message.ToString());

            BalloonBox balloon = new BalloonBox();
            balloon.BalloonText = "GitHub Notifier";
            balloon.BalloonMessage = message.ToString();
            if (!string.IsNullOrEmpty(message.Url) && !message.IsLocal)
            {
                balloon.AdditionalClickEvent = new Task(() => Process.Start(message.Url));
            }
            DNotificationIcon.ShowCustomBalloon(balloon, PopupAnimation.Slide, 6000);
        }