private string GetPassword(string messageText, bool isNewPassword = false)
        {
            var dlg = new PasswordPrompt(messageText, isNewPassword);

            dlg.ShowDialog();
            return(dlg.Password);
        }
Esempio n. 2
0
        private void GetPassword(bool show)
        {
            if (!show)
            {
                return;
            }

            var dlg = new PasswordPrompt("Enter password to protect key file (leave blank for unencrypted key)", true);

            dlg.ShowDialog();
            //return dlg.Password;
        }