コード例 #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();
            }
        }
コード例 #2
0
        private void checkBoxMentor_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBoxMentor.Checked)
            {
                checkBoxStudent.Hide();
                checkBoxLecturer.Hide();
                comboBoxStudents.Hide();
                comboBoxLecturers.Hide();
                ChooseGroup.Hide();
                ChooseGroupComb.Hide();
                HideUser();

                if (s != null)
                {
                    MentorBox.Text = s.getSMentor().getFullName();
                }
            }

            else
            {
                resEmp = null;
                MentorBox.ResetText();
                checkBoxStudent.Show();
                checkBoxLecturer.Show();
                comboBoxStudents.Show();
                comboBoxLecturers.Show();
                ChooseGroup.Show();
                ChooseGroupComb.Show();
                HideUser();
            }
        }