Пример #1
0
        private void openMajor_Click(object sender, EventArgs e)
        {
            var major = new MajorForm();

            major.Show();
            this.Hide();
        }
        private void SwitchTo_Major_Click(object sender, EventArgs e)
        {
            this.Hide();
            var major = new MajorForm();

            major.Show();
        }
        //***************** Form Switch ************************   PLEAAAAASE ADD
        private void SwitchFormToMajorButton_Click(object sender, EventArgs e)
        {
            MajorForm majorForm = new MajorForm();

            majorForm.Show();
            this.Hide();
        }
        private void selectObjectButton_Click(object sender, EventArgs e)
        {
            string selected = this.objectBox.GetItemText(this.objectBox.SelectedItem);

            if (selected == "Student")
            {
                StudentForm std = new StudentForm();
                std.Show();
            }

            else if (selected == "Faculty")
            {
                FacultyForm fac = new FacultyForm();
                fac.Show();
            }

            else if (selected == "Major")
            {
                MajorForm maj = new MajorForm();
                maj.Show();
            }

            else if (selected == "Enrollment")
            {
                EnrollmentsForm enr = new EnrollmentsForm();
                enr.Show();
            }

            else if (selected == "Section")
            {
                SectionForm sec = new SectionForm();
                sec.Show();
            }

            else if (selected == "Course")
            {
                CourseForm cor = new CourseForm();
                cor.Show();
            }

            else
            {
                errorLabel.Text = "Please select a form to fill out from the selected criteria.";
            }
        }
Пример #5
0
        private void ToMajorMenuButton_Click(object sender, EventArgs e)
        {
            var myForm1 = new MajorForm();

            myForm1.Show();
        }
Пример #6
0
        private void OpenMajorFormButton_Click(object sender, EventArgs e)
        {
            var majorForm = new MajorForm();

            majorForm.Show();
        }