Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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();
 }