aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Dialog.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-28 20:01:04 -0400
committerMichael <[email protected]>2017-04-28 20:01:04 -0400
commit712d38a2be53b415c2635b86e1f539faec0ace19 (patch)
treef600fea9f8f98a715216a98100f047846b693faa /ShiftOS.WinForms/Applications/Dialog.cs
parente1b3ecc57d42a961c780114e4e582a875e8f3b96 (diff)
downloadshiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.tar.gz
shiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.tar.bz2
shiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.zip
Final Beta 2.3 adjustments.
Diffstat (limited to 'ShiftOS.WinForms/Applications/Dialog.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Dialog.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/ShiftOS.WinForms/Applications/Dialog.cs b/ShiftOS.WinForms/Applications/Dialog.cs
index 593d64b..6e358e6 100644
--- a/ShiftOS.WinForms/Applications/Dialog.cs
+++ b/ShiftOS.WinForms/Applications/Dialog.cs
@@ -72,7 +72,7 @@ namespace ShiftOS.WinForms.Applications
internal void OpenInternal(string title, string msg)
{
Title = title;
- AppearanceManager.SetupWindow(this);
+ AppearanceManager.SetupDialog(this);
lbmessage.Text = msg;
txtinput.Hide();
flyesno.Hide();
@@ -93,11 +93,12 @@ namespace ShiftOS.WinForms.Applications
new Dialog().OpenInternal(title, msg);
}
- public void PromptTextInternal(string title, string message, Action<string> callback)
+ public void PromptTextInternal(string title, string message, Action<string> callback, bool isPassword)
{
Title = title;
- AppearanceManager.SetupWindow(this);
+ AppearanceManager.SetupDialog(this);
lbmessage.Text = message;
+ txtinput.UseSystemPasswordChar = isPassword;
txtinput.Show();
flyesno.Hide();
btnok.Show();
@@ -117,9 +118,9 @@ namespace ShiftOS.WinForms.Applications
};
}
- public void PromptText(string title, string message, Action<string> callback)
+ public void PromptText(string title, string message, Action<string> callback, bool isPassword)
{
- new Dialog().PromptTextInternal(title, message, callback);
+ new Dialog().PromptTextInternal(title, message, callback, isPassword);
}
public void PromptYesNo(string title, string message, Action<bool> callback)
@@ -132,7 +133,7 @@ namespace ShiftOS.WinForms.Applications
public void PromptYesNoInternal(string title, string message, Action<bool> callback)
{
Title = title;
- AppearanceManager.SetupWindow(this);
+ AppearanceManager.SetupDialog(this);
lbmessage.Text = message;
txtinput.Hide();
flyesno.Show();