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);
        }
        public void OnNavigatedTo(NavigationParameters parameters)
        {
            if (!parameters.ContainsKey("backfromdetail"))
            {
                _coreService = EduPageViewModel.CoreService;
                _httpService = EduPageViewModel.HttpService;
                _studentName = EduPageViewModel.Name;

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

                //获取最新成绩
                LoadOnlineData();
            }
        }
Esempio n. 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;
            }
        }
Esempio n. 4
0
 public EduExamPageViewModel()
 {
     //_dbService = new Services.DbService();
     _dbService   = new DbService();
     _coreService = new Services.EduService();
 }