public static string AskPassword(bool CanPasswordBeEmpty = true) { using (PasswordEntry entry = new PasswordEntry(CanPasswordBeEmpty)) { entry.ShowDialog(); if (entry.Canceled) return null; return entry.Password; } }
public static string AskPassword(bool CanPasswordBeEmpty = true) { using (PasswordEntry entry = new PasswordEntry(CanPasswordBeEmpty)) { entry.ShowDialog(); if (entry.Canceled) { return(null); } return(entry.Password); } }