diff options
| author | Michael <[email protected]> | 2017-04-15 11:35:38 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-15 11:35:38 -0400 |
| commit | 761202b4908d28f6aba852a3a59eb1dca50957d1 (patch) | |
| tree | 895c5f4e0eb97a7b6a26a41cd43c781dabe428c2 /ShiftOS.WinForms/Applications/Dialog.cs | |
| parent | 1a3a9b4a4c82bab2417955c81acddb85352d9013 (diff) | |
| download | shiftos_thereturn-761202b4908d28f6aba852a3a59eb1dca50957d1.tar.gz shiftos_thereturn-761202b4908d28f6aba852a3a59eb1dca50957d1.tar.bz2 shiftos_thereturn-761202b4908d28f6aba852a3a59eb1dca50957d1.zip | |
Infobox SHOULD play a sound.
Diffstat (limited to 'ShiftOS.WinForms/Applications/Dialog.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Dialog.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/Applications/Dialog.cs b/ShiftOS.WinForms/Applications/Dialog.cs index 11fbf1e..10737a1 100644 --- a/ShiftOS.WinForms/Applications/Dialog.cs +++ b/ShiftOS.WinForms/Applications/Dialog.cs @@ -28,9 +28,11 @@ using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; +using System.Media; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Microsoft.VisualBasic.Devices; using ShiftOS.Engine; namespace ShiftOS.WinForms.Applications @@ -42,13 +44,15 @@ namespace ShiftOS.WinForms.Applications public Dialog() { InitializeComponent(); - } + } public string Title { get; private set; } public void OnLoad() { AppearanceManager.SetWindowTitle(this, this.Title); + //NOT EVEn THIS WORKS + new Computer().Audio.Play(Properties.Resources.infobox, Microsoft.VisualBasic.AudioPlayMode.Background); } public void OnSkinLoad() @@ -67,8 +71,8 @@ namespace ShiftOS.WinForms.Applications internal void OpenInternal(string title, string msg) { - AppearanceManager.SetupWindow(this); Title = title; + AppearanceManager.SetupWindow(this); lbmessage.Text = msg; txtinput.Hide(); flyesno.Hide(); @@ -91,8 +95,8 @@ namespace ShiftOS.WinForms.Applications public void PromptTextInternal(string title, string message, Action<string> callback) { - AppearanceManager.SetupWindow(this); Title = title; + AppearanceManager.SetupWindow(this); lbmessage.Text = message; txtinput.Show(); flyesno.Hide(); @@ -127,8 +131,8 @@ namespace ShiftOS.WinForms.Applications public void PromptYesNoInternal(string title, string message, Action<bool> callback) { - AppearanceManager.SetupWindow(this); Title = title; + AppearanceManager.SetupWindow(this); lbmessage.Text = message; txtinput.Hide(); flyesno.Show(); |
