Пример #1
0
 private void CryptoPadMain_Load(object sender, EventArgs e)
 {
     var dlg = new PasswordDialog();
     if (dlg.ShowDialog() == DialogResult.OK)
         Login(dlg.Password);
     else
         Application.Exit();
 }
Пример #2
0
        private void CryptoPadMain_Load(object sender, EventArgs e)
        {
            var dlg = new PasswordDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Login(dlg.Password);
            }
            else
            {
                Application.Exit();
            }
        }