Beispiel #1
0
        private void ShowNotification(string title, string subtitle, bool autoHide = true, bool withSound = true, int delay = 5000)
        {
            this.Invoke((MethodInvoker) delegate
            {
                if (this.WindowState == FormWindowState.Minimized)
                {
                    autoHide = false;
                }

                Notification notify = new Notification(title, subtitle, autoHide, withSound, delay);
                notify.ParentForm   = this;
                notify.Show();

                Flash.FlashWindowEx(this);
            });
        }