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