Пример #1
0
        private void ug_click(object sender, EventArgs e)
        {
            degreeForm expandDegree = new degreeForm();
            Label      d            = (Label)sender;

            if (d.Name == "webLabel")
            {
                expandDegree.minorTitle       = degrees.undergraduate[0].title;
                expandDegree.minorCourses     = degrees.undergraduate[0].concentrations;
                expandDegree.minorDescription = degrees.undergraduate[0].description;
            }
            else if (d.Name == "humanLabel")
            {
                expandDegree.minorTitle       = degrees.undergraduate[1].title;
                expandDegree.minorCourses     = degrees.undergraduate[1].concentrations;
                expandDegree.minorDescription = degrees.undergraduate[1].description;
            }
            else
            {
                expandDegree.minorTitle       = degrees.undergraduate[2].title;
                expandDegree.minorCourses     = degrees.undergraduate[2].concentrations;
                expandDegree.minorDescription = degrees.undergraduate[2].description;
            }
            expandDegree.Show();
        }
Пример #2
0
        private void minor_click(object sender, EventArgs e)
        {
            degreeForm expandMinors = new degreeForm();
            Label      k            = (Label)sender;

            if (k.Name == "dataLabel")
            {
                expandMinors.minorTitle       = minors.UgMinors[0].title;
                expandMinors.minorCourses     = minors.UgMinors[0].courses;
                expandMinors.minorNote        = minors.UgMinors[0].note;
                expandMinors.minorDescription = minors.UgMinors[0].description;
            }
            else if (k.Name == "geoLabel")
            {
                expandMinors.minorTitle       = minors.UgMinors[1].title;
                expandMinors.minorCourses     = minors.UgMinors[1].courses;
                expandMinors.minorNote        = minors.UgMinors[1].note;
                expandMinors.minorDescription = minors.UgMinors[1].description;
            }
            else if (k.Name == "designLabel")
            {
                expandMinors.minorTitle       = minors.UgMinors[3].title;
                expandMinors.minorCourses     = minors.UgMinors[3].courses;
                expandMinors.minorNote        = minors.UgMinors[3].note;
                expandMinors.minorDescription = minors.UgMinors[3].description;
            }
            else if (k.Name == "devLabel")
            {
                expandMinors.minorTitle       = minors.UgMinors[4].title;
                expandMinors.minorCourses     = minors.UgMinors[4].courses;
                expandMinors.minorNote        = minors.UgMinors[4].note;
                expandMinors.minorDescription = minors.UgMinors[4].description;
            }
            else if (k.Name == "sysLabel")
            {
                expandMinors.minorTitle       = minors.UgMinors[5].title;
                expandMinors.minorCourses     = minors.UgMinors[5].courses;
                expandMinors.minorNote        = minors.UgMinors[5].note;
                expandMinors.minorDescription = minors.UgMinors[5].description;
            }
            else if (k.Name == "wddLabel")
            {
                expandMinors.minorTitle       = minors.UgMinors[6].title;
                expandMinors.minorCourses     = minors.UgMinors[6].courses;
                expandMinors.minorNote        = minors.UgMinors[6].note;
                expandMinors.minorDescription = minors.UgMinors[6].description;
            }
            else if (k.Name == "webdevLabel")
            {
                expandMinors.minorTitle       = minors.UgMinors[7].title;
                expandMinors.minorCourses     = minors.UgMinors[7].courses;
                expandMinors.minorNote        = minors.UgMinors[7].note;
                expandMinors.minorDescription = minors.UgMinors[7].description;
            }

            expandMinors.Show();
        }