aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Dialog.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-30 17:50:50 -0400
committerMichael <[email protected]>2017-04-30 17:50:54 -0400
commitcdfba45faaa9202c69bdfe1a2f9e92140e0ecdae (patch)
tree273464351e4bd65e60c083d4d35880fd43148dd3 /ShiftOS.WinForms/Applications/Dialog.cs
parent9a911c660feb1ef1177cc2bad002eb87004b6362 (diff)
downloadshiftos_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.cs7
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)