private void btnModifyPassword_Click(object sender, EventArgs e) { string cardNo = txtVIPCardNo.Text.Trim(); if (!string.IsNullOrEmpty(cardNo)) { FormVIPCardPassword formPassword = new FormVIPCardPassword(cardNo, _inputPassword); formPassword.ShowDialog(); if (formPassword.Result) { this.Close(); } } }