示例#1
0
 private void txtTRAccNo_Click(object sender, EventArgs e)
 {
     Dialog.frmDialogSearchBank bk = new Dialog.frmDialogSearchBank();
     bk.ShowDialog();
     if (bk.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         txtTRAccNo.Text = bk.dgvBank.SelectedRows[0].Cells["AccNo"].Value.ToString();
         txtTRBank.Text = bk.dgvBank.SelectedRows[0].Cells["BankName"].Value.ToString();
         txtTRBankBrch.Text = bk.dgvBank.SelectedRows[0].Cells["BankBranchName"].Value.ToString();
     }
 }
示例#2
0
 private void txtChequeBankFrom_Click(object sender, EventArgs e)
 {
     Dialog.frmDialogSearchBank bk = new Dialog.frmDialogSearchBank(true);
     bk.ShowDialog();
     if (bk.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         txtChequeBankFrom.Text = "[" + bk.dgvBank.SelectedRows[0].Cells["BankId"].Value.ToString() + "] " + bk.dgvBank.SelectedRows[0].Cells["BankName"].Value.ToString();
     }
 }