void save(object obj)
        {
            SystemCourseWindow window = obj as SystemCourseWindow;

            window.Courses      = this.SystemCourses.Where(sc => sc.IsChecked)?.ToList();
            window.DialogResult = true;
        }
示例#2
0
        void save(object obj)
        {
            SystemCourseWindow window = obj as SystemCourseWindow;

            List <UICourse> selectCourses = new List <UICourse>();

            var selects = this.Selectives.Where(sc => sc.IsChecked)?.ToList();

            selectCourses.AddRange(selects);

            var academics = this.Academics.Where(ad => ad.IsChecked)?.ToList();

            selectCourses.AddRange(academics);

            window.Courses      = selectCourses;
            window.DialogResult = true;
        }
示例#3
0
        void cancel(object obj)
        {
            SystemCourseWindow window = obj as SystemCourseWindow;

            window.DialogResult = false;
        }