/// <summary> /// create form for a new creditcrad /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonNewCreditCard_Click(object sender, EventArgs e) { frmNewCreditcard newCreditcard = new frmNewCreditcard(_logic, _clientIdCard, true); newCreditcard.ShowDialog(); if (newCreditcard.DialogResult == DialogResult.OK) { FillCreditCardGridView(); } }
/// <summary> /// send us to the form to change pin to a credit card /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonChangePin_Click(object sender, EventArgs e) { frmNewCreditcard newCreditcard = new frmNewCreditcard(_logic, dGVCreditcards.SelectedRows[0].Cells[3].Value.ToString(), false); newCreditcard.ShowDialog(); }