Наследование: System.Windows.Forms.Form
Пример #1
0
        public static string AskPassword(bool CanPasswordBeEmpty = true)
        {
            using (PasswordEntry entry = new PasswordEntry(CanPasswordBeEmpty))
            {
                entry.ShowDialog();

                if (entry.Canceled) return null;

                return entry.Password;
            }
        }
Пример #2
0
        public static string AskPassword(bool CanPasswordBeEmpty = true)
        {
            using (PasswordEntry entry = new PasswordEntry(CanPasswordBeEmpty))
            {
                entry.ShowDialog();

                if (entry.Canceled)
                {
                    return(null);
                }

                return(entry.Password);
            }
        }