Esempio n. 1
1
 private void txtBankCode_KeyDown(object sender, KeyEventArgs e)
 {
     frmSelectBank frm = new frmSelectBank();
     // Add an event handler to update this form
     frm.SelectBankUpdate +=new frmSelectBank.SelectBankHandler(frm_SelectBankUpdate);
     frm.Show();
 }
Esempio n. 2
0
 // handles the event from frmSelectBank
 void frm_SelectBankUpdate(object sender, frmSelectBank.SelectBankEventArgs e)
 {
     txtBankCode.Text = e.Code;
     txtBankName.Text = e.Name;
 }