예제 #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();
            }
        }