示例#1
0
        private void cmdAdd_Click(object sender, System.EventArgs e)
        {
            AcademicYear currYear = plan[yearIndex];
            Course       cs       = (Course)lbxAvailable.SelectedItem;

            if (rboFall.Checked)
            {
                AddCourse(cs, currYear.Fall, lbxFall);
            }
            else if (rboWinter.Checked)
            {
                AddCourse(cs, currYear.Winter, lbxWinter);
            }
            else if (rboSpring.Checked)
            {
                AddCourse(cs, currYear.Spring, lbxSpring);
            }
            else if (rboSummer.Checked)
            {
                AddCourse(cs, currYear.Summer, lbxSummer);
            }
        }