private void btn_Edit_Click(object sender, EventArgs e) { using (EditEmployeeView editEmployee = new EditEmployeeView(Convert.ToInt32(dgv_unassigned.SelectedCells[0].Value))) { editEmployee.ShowDialog(); } LoadGrid(); }
private void btn_Add_Click(object sender, EventArgs e) { using (EditEmployeeView addEmployee = new EditEmployeeView(null)) { addEmployee.ShowDialog(); } LoadGrid(); }