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; } }
private void button2_Click(object sender, EventArgs e) { thisCourse.classInfo = new ClassInfo.ClassInfo(); this.thisCourse.classInfo.comments = textBox1.Text; AppWideInfo.SetCourse(thisCourse, courseCode); FileHandling.Save(); }
private void fromScratchToolStripMenuItem_Click(object sender, EventArgs e) { AppWideInfo.Clear(); WizardBegin wiz = new WizardBegin(); wiz.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { Day._310 day = new Day._310(); day.firstDoublePeriod = comboBox1.SelectedIndex; day.singleOne = comboBox3.SelectedIndex; day.singleTwo = comboBox4.SelectedIndex; AppWideInfo.SetDay(day, dayNumber); this.Close(); }
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(); }
private void button1_Click(object sender, EventArgs e) { thisCourse.classCode = this.textBox1.Text; thisCourse.ClassName = this.textBox2.Text; thisCourse.ClassRoom = this.textBox3.Text; thisCourse.TeacherName = this.textBox4.Text; thisCourse.type = (Course.Type) this.comboBox1.SelectedIndex; thisCourse.courseColor = (comboBoxColour.SelectedItem != null) ? comboBoxColour.SelectedItem.ToString() : "Control"; AppWideInfo.SetCourse(thisCourse, courseNumber); this.Close(); }
private void button1_Click(object sender, EventArgs e) { Day._330 day = new Day._330(); day.single1 = comboBox1.SelectedIndex; day.single2 = comboBox2.SelectedIndex; day.single3 = comboBox3.SelectedIndex; day.single4 = comboBox4.SelectedIndex; day.single5 = comboBox5.SelectedIndex; day.single6 = comboBox6.SelectedIndex; AppWideInfo.SetDay(day, dayNumber); this.Close(); }
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; } }
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; } }