From 712d38a2be53b415c2635b86e1f539faec0ace19 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 28 Apr 2017 20:01:04 -0400 Subject: Final Beta 2.3 adjustments. --- ShiftOS.WinForms/Applications/Dialog.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'ShiftOS.WinForms/Applications/Dialog.cs') 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 callback) + public void PromptTextInternal(string title, string message, Action 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 callback) + public void PromptText(string title, string message, Action callback, bool isPassword) { - new Dialog().PromptTextInternal(title, message, callback); + new Dialog().PromptTextInternal(title, message, callback, isPassword); } public void PromptYesNo(string title, string message, Action callback) @@ -132,7 +133,7 @@ namespace ShiftOS.WinForms.Applications public void PromptYesNoInternal(string title, string message, Action callback) { Title = title; - AppearanceManager.SetupWindow(this); + AppearanceManager.SetupDialog(this); lbmessage.Text = message; txtinput.Hide(); flyesno.Show(); -- cgit v1.2.3