diff options
| author | Michael <[email protected]> | 2017-04-30 17:50:50 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-30 17:50:54 -0400 |
| commit | cdfba45faaa9202c69bdfe1a2f9e92140e0ecdae (patch) | |
| tree | 273464351e4bd65e60c083d4d35880fd43148dd3 /ShiftOS.WinForms/Applications/Dialog.cs | |
| parent | 9a911c660feb1ef1177cc2bad002eb87004b6362 (diff) | |
| download | shiftos_thereturn-cdfba45faaa9202c69bdfe1a2f9e92140e0ecdae.tar.gz shiftos_thereturn-cdfba45faaa9202c69bdfe1a2f9e92140e0ecdae.tar.bz2 shiftos_thereturn-cdfba45faaa9202c69bdfe1a2f9e92140e0ecdae.zip | |
unite stuffs
Diffstat (limited to 'ShiftOS.WinForms/Applications/Dialog.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Dialog.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/Applications/Dialog.cs b/ShiftOS.WinForms/Applications/Dialog.cs index 6e358e6..2abc705 100644 --- a/ShiftOS.WinForms/Applications/Dialog.cs +++ b/ShiftOS.WinForms/Applications/Dialog.cs @@ -69,7 +69,7 @@ namespace ShiftOS.WinForms.Applications { } - internal void OpenInternal(string title, string msg) + internal void OpenInternal(string title, string msg, Action c) { Title = title; AppearanceManager.SetupDialog(this); @@ -80,7 +80,7 @@ namespace ShiftOS.WinForms.Applications btnok.Click += (o, a) => { AppearanceManager.Close(this); - OpenCallback?.Invoke(); + c?.Invoke(); }; } @@ -89,8 +89,7 @@ namespace ShiftOS.WinForms.Applications public void Open(string title, string msg, Action c = null) { - OpenCallback = c; - new Dialog().OpenInternal(title, msg); + new Dialog().OpenInternal(title, msg, c); } public void PromptTextInternal(string title, string message, Action<string> callback, bool isPassword) |
