aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/Dialog.cs6
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);
}