示例#1
0
 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");
     }
 }
示例#2
0
        private void addDegreeButton_Click(object sender, EventArgs e)
        {
            AddEditDegree AddEditDegree = new AddEditDegree(employee_id, 0);

            AddEditDegree.Show();
        }