/// <summary> /// Эта функция выводит уведомление ошибки /// </summary> public void ErrorPopupThreadFunc() { SoundPlayer Player = new SoundPlayer(); Player.Stream = Properties.Resources.definite; Player.Play(); PopupTransition.ShowSync(PopupPanel); Thread.Sleep(5000); PopupTransition.HideSync(PopupPanel); }
/// <summary> /// Вывод уведомления с подсказкой /// </summary> void PopupThreadFunc() { Thread.Sleep(1000); SoundPlayer Player = new SoundPlayer(); Player.Stream = Properties.Resources.notification; Player.Play(); PopupTransition.ShowSync(HelpPopupPanel); Thread.Sleep(2000); PopupTransition.HideSync(HelpPopupPanel); Thread.CurrentThread.Abort(); }