コード例 #1
0
        public EduGradePageViewModel(INavigationService navigationService)
        {
            GradePageVM = this;

            _navigationService = navigationService;
            _dbService         = new Services.DbService();
            _coreService       = new Services.EduService();


            ItemClickCommand   = new DelegateCommand <object>(ItemClick);
            RefreshCommand     = new DelegateCommand(Refresh);
            ToGradeInfoCommand = new DelegateCommand(ToGradeInfo);
        }
コード例 #2
0
        public void OnNavigatedTo(NavigationParameters parameters)
        {
            if (!parameters.ContainsKey("backfromdetail"))
            {
                _coreService = EduPageViewModel.CoreService;
                _httpService = EduPageViewModel.HttpService;
                _studentName = EduPageViewModel.Name;

                //Loaded();
                //加载离线数据
                LoadGradeChart();

                //获取最新成绩
                LoadOnlineData();
            }
        }
コード例 #3
0
        public async void OnNavigatedTo(NavigationParameters parameters)
        {
            if (parameters != null)
            {
                _coreService = EduPageViewModel.CoreService;
                _httpService = EduPageViewModel.HttpService;
                _studentName = EduPageViewModel.Name;

                BJUTEduCenterUserinfo = _dbService.GetAll <Models.BJUTEduCenterUserinfo>().FirstOrDefault();

                IsLoading = true;
                await GetExamInfo();

                IsLoading = false;
            }
        }
コード例 #4
0
 public EduExamPageViewModel()
 {
     //_dbService = new Services.DbService();
     _dbService   = new DbService();
     _coreService = new Services.EduService();
 }