diff options
| author | Michael <[email protected]> | 2017-03-09 09:53:00 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-09 09:53:00 -0500 |
| commit | 02fd7a883b4592a2200c4f3e912e56bdc09bfdbc (patch) | |
| tree | e8efda7855fcdbf32b721879977be6b09202d794 /ShiftOS.WinForms | |
| parent | 8db3a2e11c6cc58adb2b62fbce1c1f63426b674c (diff) | |
| download | shiftos_thereturn-02fd7a883b4592a2200c4f3e912e56bdc09bfdbc.tar.gz shiftos_thereturn-02fd7a883b4592a2200c4f3e912e56bdc09bfdbc.tar.bz2 shiftos_thereturn-02fd7a883b4592a2200c4f3e912e56bdc09bfdbc.zip | |
callback action can be fired when user closes infobox
Diffstat (limited to 'ShiftOS.WinForms')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Dialog.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/Dialog.cs b/ShiftOS.WinForms/Applications/Dialog.cs index 26e3040..11fbf1e 100644 --- a/ShiftOS.WinForms/Applications/Dialog.cs +++ b/ShiftOS.WinForms/Applications/Dialog.cs @@ -76,12 +76,16 @@ namespace ShiftOS.WinForms.Applications btnok.Click += (o, a) => { AppearanceManager.Close(this); + OpenCallback?.Invoke(); }; } - public void Open(string title, string msg) + private Action OpenCallback = null; + + public void Open(string title, string msg, Action c = null) { + OpenCallback = c; new Dialog().OpenInternal(title, msg); } |
