protected override void HandleNotification(Notification notification, string displayName) { CompactDarkWindow win = new CompactDarkWindow(); win.SetNotification(notification); this.Show(win); //win.FormClosed += new FormClosedEventHandler(win_FormClosed); /* * * ToastWindow win = new ToastWindow(); * * win.FormClosed += new FormClosedEventHandler(win_FormClosed); * * win.SetNotification(notification); * * * * this.queuedNotifications.Enqueue(win); * * WorkQueue(); * */ }
protected override void HandleNotification(Notification notification, string displayName) { CompactDarkWindow win = new CompactDarkWindow(); win.SetNotification(notification); this.Show(win); //win.FormClosed += new FormClosedEventHandler(win_FormClosed); /* ToastWindow win = new ToastWindow(); win.FormClosed += new FormClosedEventHandler(win_FormClosed); win.SetNotification(notification); this.queuedNotifications.Enqueue(win); WorkQueue(); */ }