예제 #1
0
        public void SetAllTheCourses()
        {
            foreach (string s in AppWideInfo.courseNames)
            {
                string sa = (String.IsNullOrWhiteSpace(s)) ? "Course not created or named" : s;
                comboBox1.Items.Add(sa);
                comboBox2.Items.Add(sa);
                comboBox3.Items.Add(sa);
                comboBox4.Items.Add(sa);
                comboBox5.Items.Add(sa);
                comboBox6.Items.Add(sa);
            }

            Day._330 day = (Day._330)AppWideInfo.GetDay(dayNumber);

            if (day != null)
            {
                comboBox1.SelectedIndex = day.single1;
                comboBox2.SelectedIndex = day.single2;
                comboBox3.SelectedIndex = day.single3;
                comboBox4.SelectedIndex = day.single4;
                comboBox5.SelectedIndex = day.single5;
                comboBox6.SelectedIndex = day.single6;
            }
        }
예제 #2
0
        public void SetAllTheCourses()
        {
            foreach (string s in AppWideInfo.courseNames)
            {
                string sa = (String.IsNullOrWhiteSpace(s)) ? "Course not created or named" : s;
                comboBox1.Items.Add(sa);
                comboBox3.Items.Add(sa);
                comboBox4.Items.Add(sa);
            }

            Day._310 day = (Day._310)AppWideInfo.GetDay(dayNumber);

            if (day != null)
            {
                comboBox1.SelectedIndex = day.firstDoublePeriod;
                comboBox3.SelectedIndex = day.singleOne;
                comboBox4.SelectedIndex = day.singleTwo;
            }
        }
예제 #3
0
        public void SetAllTheCourses()
        {
            foreach (string s in AppWideInfo.courseNames)
            {
                string sa = (String.IsNullOrWhiteSpace(s)) ? "Course not created or named" : s;
                comboBox1.Items.Add(sa);
                comboBox2.Items.Add(sa);
                comboBox3.Items.Add(sa);
                comboBox4.Items.Add(sa);
            }

            Day._315 day = (Day._315)AppWideInfo.GetDay(dayNumber);

            if (day != null)
            {
                comboBox1.SelectedIndex = day.firstSingle;
                comboBox2.SelectedIndex = day.secondSingle;
                comboBox3.SelectedIndex = day.middleDouble;
                comboBox4.SelectedIndex = day.endDouble;
            }
        }