コード例 #1
0
 private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
 {
     if (!Hash.VerifyHash(txtPassword.Password, _noteItem.N_shadow))
     {
         args.Cancel = true;
         txtInfo.Text = AppConstants.AppMessages[AppConstants.UsedLanguage]["cd_txtInfo"];
     }
     else
     {
         args.Cancel = false;
         TmpPassword.Clear();
         TmpPassword.NewPassword = txtPassword.Password;
         _return = PasswordRequestContentDialogReturn.BtnOk;
     }
 }
コード例 #2
0
 private void ContentDialog_SecondaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
 {
     _return = PasswordRequestContentDialogReturn.BtnCancel;
 }