private void btnEmployeeEdit_Click(object sender, EventArgs e) { EmployeeEditForm employeeEditForm = new EmployeeEditForm(); employeeEditForm.MdiParent = this; employeeEditForm.Show(); ClosePanelVisible(); }
private void miUpdate_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { object cellValue = dataGridView1.SelectedRows[0].Cells["ID"].Value; int employeeID = (int)cellValue; EmployeeEditForm editForm = new EmployeeEditForm(employeeID); editForm.MdiParent = this.MdiParent; editForm.Show(); } }