Example #1
0
 private void ButtonChangePassword_Click(object sender, System.EventArgs e)
 {
     if (this._show_credentials)
     {
         ChangePasswordForm password_form = new ChangePasswordForm(this._cred_handling.Password);
         if (password_form.ShowDialog(this) == DialogResult.OK)
         {
             this._cred_handling.Password = password_form.password;
             this.session_changed         = true;
         }
     }
     else
     {
         ChangePasswordForm password_form = new ChangePasswordForm(this._cert_handling.Password);
         if (password_form.ShowDialog(this) == DialogResult.OK)
         {
             this._cert_handling.Password = password_form.password;
             this.session_changed         = true;
         }
     }
 }
 private void ButtonChangePassword_Click(object sender, System.EventArgs e)
 {
     if (this._show_credentials)
     {
         ChangePasswordForm password_form = new ChangePasswordForm (this._cred_handling.Password);
         if (password_form.ShowDialog (this) == DialogResult.OK)
         {
             if (this._cred_handling.Password != password_form.password)
             {
                 this._cred_handling.Password = password_form.password;
                 this.session_changed = true;
                 this.file_changed = true;
             }
         }
     }
     else
     {
         ChangePasswordForm password_form = new ChangePasswordForm (this._cert_handling.Password);
         if (password_form.ShowDialog (this) == DialogResult.OK)
         {
             this._cert_handling.Password = password_form.password;
             this.session_changed = true;
         }
     }
 }