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(); } }
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(); } }
public void HideUser() { if (Program.empUser.getType().ToString() == "Mentor") { checkBoxMentor.Hide(); MentorBox.Hide(); } if (Program.empUser.getType().ToString() == "Lecturer") { checkBoxLecturer.Hide(); comboBoxLecturers.Hide(); } }