private void bttnAdd_Click(object sender, EventArgs e)
 {
     if ((int)cmbEmployeeName.SelectedValue < 1)
     {
         ShowMessage.CustomErrorMessage("Select Employee.");
     }
     else if ((int)cmbSemester.SelectedValue < 1)
     {
         ShowMessage.CustomErrorMessage("Semester not loaded. Click Search button to set selected semester.");
         return;
     }
     else if (listView1.Items.Count >= 7)
     {
         ShowMessage.CustomErrorMessage("Workload schedule already completed.");
     }
     else
     {
         frmEmployeeWorkload_AE f = new frmEmployeeWorkload_AE
         {
             employeeId = employeeId,
             semesterId = (int)cmbSemester.SelectedValue,
             ADD_STATE  = true
         };
         f.ShowDialog();
         LoadWorkload(employeeId, (int)cmbSemester.SelectedValue);
     }
 }
        private void bttnEdit_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count < 1)
            {
                MessageBox.Show("Pls. Select an Item.", "Select Item", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                frmEmployeeWorkload_AE f = new frmEmployeeWorkload_AE
                {
                    employeeId = employeeId,
                    semesterId = (int)cmbSemester.SelectedValue,
                    ADD_STATE  = false,
                    workloadId = int.Parse(listView1.SelectedItems[0].Text)
                };

                f.ShowDialog();
                LoadWorkload(employeeId, (int)cmbSemester.SelectedValue);
            }
        }