private void btnCreateCustomer_Click(object sender, EventArgs e) { CustomerEditForm customerEditForm = new CustomerEditForm(); customerEditForm.MdiParent = this; customerEditForm.Show(); ClosePanelVisible(); }
private void miUpdate_Click(object sender, EventArgs e) { if (dgvCustomerList.SelectedRows.Count > 0) { object cellValue = dgvCustomerList.SelectedRows[0].Cells["ID"].Value; int customerID = (int)cellValue; CustomerEditForm editForm = new CustomerEditForm(customerID); editForm.MdiParent = this.MdiParent; editForm.Show(); } }