private void editDegreeButton_Click(object sender, EventArgs e) { if (degreeListBox.SelectedItems.Count == 1) { AddEditDegree AddEditDegree = new AddEditDegree(employee_id, int.Parse(degreeListBox.SelectedValue.ToString())); AddEditDegree.Show(); } else { MessageBox.Show("Select a degree"); } }
private void addDegreeButton_Click(object sender, EventArgs e) { AddEditDegree AddEditDegree = new AddEditDegree(employee_id, 0); AddEditDegree.Show(); }