コード例 #1
0
        public void createCoursesSubmit(object sender, RoutedEventArgs e)
        {
            cours   = new Course();
            manager = new DBA.DbaCourse();

            cours.name = coursName.Text;

            manager.createCourse(cours);
        }
コード例 #2
0
        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;
        }
コード例 #3
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;
        }