Пример #1
0
        protected override LayoutManager GetLayoutManager(NotificationWindow win)

        {
            PlainWindow pw = (PlainWindow)win;

            switch (pw.DisplayLocation)

            {
            case Location.TopLeft:

                return(tllm);

            case Location.BottomLeft:

                return(bllm);

            case Location.TopRight:

                return(trlm);

            default:

                return(brlm);
            }
        }
Пример #2
0
        protected override void HandleNotification(Notification notification, string displayName)

        {
            if (!String.IsNullOrEmpty(notification.CoalescingGroup))

            {
                foreach (NotificationWindow nw in this.ActiveWindows)

                {
                    if (nw.CoalescingGroup == notification.CoalescingGroup)

                    {
                        ((PlainWindow)nw).Close(true);

                        break;
                    }
                }
            }



            PlainWindow win = new PlainWindow();

            win.Tag = this;

            win.SetNotification(notification);

            win.SetDisplayLocation(GetLocationFromSetting());

            this.Show(win);
        }
Пример #3
0
        protected override void HandleNotification(Notification notification, string displayName)
        {
            if (!String.IsNullOrEmpty(notification.CoalescingGroup))
            {
                foreach (NotificationWindow nw in this.ActiveWindows)
                {
                    if (nw.CoalescingGroup == notification.CoalescingGroup)
                    {
                        ((PlainWindow)nw).Close(true);
                        break;
                    }
                }
            }

            PlainWindow win = new PlainWindow();
            win.Tag = this;
            win.SetNotification(notification);
            win.SetDisplayLocation(GetLocationFromSetting());
            this.Show(win);
        }
Пример #4
0
 protected override void HandleNotification(Notification notification, string displayName)
 {
     PlainWindow win = new PlainWindow();
     win.Tag = this;
     win.SetNotification(notification);
     win.SetDisplayLocation(GetLocationFromSetting());
     this.Show(win);
 }