示例#1
0
 /// <summary>
 /// A static "ShowDialog" that gets the password as a protected string
 /// </summary>
 /// <returns>Entered password as a protected string</returns>
 public static byte[] FetchProtectedPassword()
 {
     EnterPassDialog ed = new EnterPassDialog();
     ed.ShowDialog();
     return ed.ProtectedValue;
 }
示例#2
0
 /// <summary>
 /// A static "ShowDialog" that gets the password as a secure string
 /// </summary>
 /// <returns>Entered password as a secure string</returns>
 public static System.Security.SecureString FetchPassword()
 {
     EnterPassDialog ed = new EnterPassDialog();
     ed.ShowDialog();
     return ed.Value;
 }