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