void WorkQueue()
 {
     if (!isVisible && this.queuedNotifications.Count > 0)
     {
         VisorWindow win = this.queuedNotifications.Dequeue();
         this.Show(win);
         isVisible = true;
     }
 }
Ejemplo n.º 2
0
        protected override void HandleNotification(Notification notification, string displayName)
        {
            VisorWindow win = new VisorWindow();
            win.Tag = this;
            win.BackColor = GetBackgroundColorFromPriority(notification.Priority);
            win.SetNotification(notification);

            win.FormClosed += new FormClosedEventHandler(win_FormClosed);

            this.queuedNotifications.Enqueue(win);
            WorkQueue();
        }
        protected override void HandleNotification(Notification notification, string displayName)
        {
            VisorWindow win = new VisorWindow();

            win.Tag       = this;
            win.BackColor = GetBackgroundColorFromPriority(notification.Priority);
            win.SetNotification(notification);

            win.FormClosed += new FormClosedEventHandler(win_FormClosed);

            this.queuedNotifications.Enqueue(win);
            WorkQueue();
        }