private void updatedepartmentsave_Click(object sender, EventArgs e)
 {
     if (updatedepartmentnametext.Text != "")
     {
         try
         {
             dept.departmentId   = updatedepartmentidcomboBox.Text;
             dept.departmentName = updatedepartmentnametext.Text;
             if (deptdata.updateDepartment(dept))
             {
                 MessageBox.Show("Department Update Successfully.");
             }
             else
             {
                 MessageBox.Show("Department Not Update.");
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
     else
     {
         MessageBox.Show("Empty Input.");
     }
 }