コード例 #1
0
        public void DoSearch()
        {
            CourseList = new ObservableCollection <CourseViewModel> (RawCourseList.FindAll((vm) => {
                return(vm.CourseFullName.Contains(SearchText));
            }
                                                                                           ));

            TodayCourseList = new ObservableCollection <CourseViewModel> (RawTodayCourseList.FindAll((o) => {
                return(o.CourseFullName.Contains(SearchText));
            }
                                                                                                     ));
        }
コード例 #2
0
        public void DoApply()
        {
            if (IsAllSelected)
            {
                CourseList = new ObservableCollection <CourseViewModel> (RawCourseList.FindAll((vm) => {
                    return(vm.CourseFullName.Contains(vm.CourseFullName));
                }
                                                                                               ));
                TodayCourseList = new ObservableCollection <CourseViewModel> (RawTodayCourseList.FindAll((o) => {
                    return(o.CourseFullName.Contains(o.CourseFullName));
                }
                                                                                                         ));
                ActivityList = new ObservableCollection <CourseViewModel> (RawActivityList.FindAll((v) => {
                    return(v.CourseAttendanceName.Contains(v.CourseAttendanceName));
                }
                                                                                                   ));
                NavigationHandler.GlobalNavigator.Navigation.PopAsync();
            }
            else if (IsOngoingSelected)
            {
                CourseList = new ObservableCollection <CourseViewModel> (RawCourseList.FindAll((vm) => {
                    return(vm.Status.Contains("Ongoing"));
                }
                                                                                               ));

                TodayCourseList = new ObservableCollection <CourseViewModel> (RawTodayCourseList.FindAll((o) => {
                    return(o.Status.Contains("Ongoing"));
                }
                                                                                                         ));
                NavigationHandler.GlobalNavigator.Navigation.PopAsync();
            }
            else if (IsCompletedSelected)
            {
                CourseList = new ObservableCollection <CourseViewModel> (RawCourseList.FindAll((vm) => {
                    return(vm.Status.Contains("Completed"));
                }
                                                                                               ));
                TodayCourseList = new ObservableCollection <CourseViewModel> (RawTodayCourseList.FindAll((o) => {
                    return(o.Status.Contains("Completed"));
                }
                                                                                                         ));
                ActivityList = new ObservableCollection <CourseViewModel> (RawActivityList.FindAll((v) => {
                    return(v.Status.Contains("Completed"));
                }
                                                                                                   ));
                NavigationHandler.GlobalNavigator.Navigation.PopAsync();
            }
        }