private void btnAddRecord_Click(object sender, EventArgs e) { using (var page = new AddBankAccountPage()) { page.ShowDialog(); } BankAccountsPage_Load(null, null); }
private void EditRecord() { using (var page = new AddBankAccountPage()) { if (dgv.CurrentRow != null) { page.BankId = (int)dgv.CurrentRow.Cells["clnId"].Value; page.ShowDialog(); } } BankAccountsPage_Load(null, null); }