Beispiel #1
0
        private void btAdd_Click(object sender, EventArgs e)
        {
            frmAddEditBank frm = new frmAddEditBank(0, "", "", "");

            if (frm.ShowDialog() == DialogResult.OK)
            {
                GetBanks();
            }
        }
Beispiel #2
0
        private void btEdit_Click(object sender, EventArgs e)
        {
            frmAddEditBank frm = new frmAddEditBank(Convert.ToInt32(dgBanks.CurrentRow.Cells["id"].Value),
                                                    dgBanks.CurrentRow.Cells["cName"].Value.ToString(),
                                                    dgBanks.CurrentRow.Cells["CorrespondentAccount"].Value.ToString(),
                                                    dgBanks.CurrentRow.Cells["BIC"].Value.ToString());

            if (frm.ShowDialog() == DialogResult.OK)
            {
                GetBanks();
            }
        }