Example #1
0
        public void ShowNotification(Guid id, String message, int duration, Window wnd)
        {
            _activeNotificationObj = AddNotificationObj(id, message, wnd);

            //notify_icon.ShowBalloonTip(duration, "beRemote notification", message, ToolTipIcon.None);
            ShowBalloonTip(duration, "beRemote notification", message, ToolTipIcon.None);
        }
Example #2
0
        private NotificationObj AddNotificationObj(Guid id, string message, Window wnd)
        {
            var obj = new NotificationObj(id, message, wnd);

            notifications.Add(id, obj);

            if (mnuNotifications.MenuItems.Count == 1)
            {
                if (mnuNotifications.MenuItems[0].Text.ToLower().Contains("no noti"))
                {
                    mnuNotifications.MenuItems.Clear();
                }
            }

            mnuNotifications.MenuItems.Add(notifications[id].MenuItem);

            return(obj);
        }
Example #3
0
        public void ShowNotification(string message, Exception exc)
        {
            _activeNotificationObj = AddNotificationObj(Guid.NewGuid(), String.Format("{0}\r\n{1}\r\n\r\n{2}", message, exc.Message, exc.ToString()), null);

            ShowBalloonTip(3000, "beRemote exception", message, ToolTipIcon.None);
        }