Пример #1
0
 private void cmdSave_Click(object sender, System.EventArgs e)
 {
     DialogResult = HashHelpers.CompareHash(txtCode.Text, Settings.Default.Password)
         ? DialogResult.OK
         : DialogResult.Abort;
     Close();
 }