Пример #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);
        }
Пример #2
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);
        }