Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     Day._315 day = new Day._315();
     day.firstSingle  = comboBox1.SelectedIndex;
     day.secondSingle = comboBox2.SelectedIndex;
     day.middleDouble = comboBox3.SelectedIndex;
     day.endDouble    = comboBox4.SelectedIndex;
     AppWideInfo.SetDay(day, dayNumber);
     this.Close();
 }
Ejemplo n.º 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);
                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;
            }
        }