コード例 #1
0
ファイル: Main.cs プロジェクト: derekantrican/OpSchedule
        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);
            });
        }