public void createCoursesSubmit(object sender, RoutedEventArgs e) { cours = new Course(); manager = new DBA.DbaCourse(); cours.name = coursName.Text; manager.createCourse(cours); }
public void updateCoursesComboBox() { managerCourse = new DBA.DbaCourse(); coursT = managerCourse.coursesOverview(); for (int i = 0; i < coursT.Count; i++) { item = new ComboBoxItem(); item.Content = coursT[i].name; Courses.Items.Add(item); } Courses.SelectedIndex = 0; }
public void UpdateGeneral(object sender, RoutedEventArgs e) { managerCourse = new DBA.DbaCourse(); coursT = managerCourse.coursesOverview(); for (int i = 0; i < coursT.Count; i++) { item = new ComboBoxItem(); item.Content = coursT[i].name; Courses.Items.Add(item); } Courses.SelectedIndex = 0; }