aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Dialog.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-05-01 13:37:48 -0600
committerAShifter <[email protected]>2017-05-01 13:37:48 -0600
commitd30eb35c9755cf430efa124a9a2576ab6b74c8da (patch)
treebbf4c161697b390a96af01a36277c8dc4e52e1a0 /ShiftOS.WinForms/Applications/Dialog.cs
parentb842c73b04fb92d9ecaf3d8fcc2df6157c2e8652 (diff)
parent7532df70757ecbcaf735a5fc50eee282f555741a (diff)
downloadshiftos_thereturn-d30eb35c9755cf430efa124a9a2576ab6b74c8da.tar.gz
shiftos_thereturn-d30eb35c9755cf430efa124a9a2576ab6b74c8da.tar.bz2
shiftos_thereturn-d30eb35c9755cf430efa124a9a2576ab6b74c8da.zip
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
Diffstat (limited to 'ShiftOS.WinForms/Applications/Dialog.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Dialog.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/ShiftOS.WinForms/Applications/Dialog.cs b/ShiftOS.WinForms/Applications/Dialog.cs
index 6e358e6..f9d0b86 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,17 +80,14 @@ namespace ShiftOS.WinForms.Applications
btnok.Click += (o, a) =>
{
AppearanceManager.Close(this);
- OpenCallback?.Invoke();
+ c?.Invoke();
};
}
- private Action OpenCallback = null;
-
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)