Beispiel #1
0
        private void checkBoxLecturer_CheckedChanged_1(object sender, EventArgs e)
        {
            if (checkBoxLecturer.Checked)
            {
                checkBoxStudent.Hide();
                checkBoxMentor.Hide();
                comboBoxStudents.Hide();
                MentorBox.Hide();
                ChooseGroup.Hide();
                ChooseGroupComb.Hide();
                HideUser();

                if (s != null)
                {
                    Fill_combo_box_Lecturers();
                }
            }
            else
            {
                resEmp = null;
                comboBoxLecturers.ResetText();
                checkBoxMentor.Show();
                checkBoxStudent.Show();
                comboBoxStudents.Show();
                MentorBox.Show();
                ChooseGroup.Show();
                ChooseGroupComb.Show();
                HideUser();
            }
        }
Beispiel #2
0
 private void FillActivityFeedback_Load(object sender, EventArgs e)
 {
     if (Program.empUser.getType().ToString() == "Mentor")
     {
         checkBoxMentor.Hide();
         MentorBox.Hide();
     }
     if (Program.empUser.getType().ToString() == "Lecturer")
     {
         checkBoxLecturer.Hide();
         comboBoxLecturers.Hide();
     }
 }
Beispiel #3
0
 public void HideUser()
 {
     if (Program.empUser.getType().ToString() == "Mentor")
     {
         checkBoxMentor.Hide();
         MentorBox.Hide();
     }
     if (Program.empUser.getType().ToString() == "Lecturer")
     {
         checkBoxLecturer.Hide();
         comboBoxLecturers.Hide();
     }
 }