Beispiel #1
0
        public override async Task InitializeAsync(object navigationData)
        {
            if (IsInitialize == true)
            {
                return;
            }
            model = await dailyPresenter.GetClientDaily(Id);            //从本地数据库获取

            modelEx = await dailyPresenter.GetClientDailyExtra(Id);     //从本地数据库获取

            IsProgressing |= await RenewDailyUI(model, modelEx) == false;

            ProgressBarRunning();
            if (model.title == "" || model.updatetime.AddMinutes(15) < DateTime.Now)
            {
                model = await dailyPresenter.GetServiceDaily(Id);

                modelEx = await dailyPresenter.GetServiceDailyExtra(Id);
                await RenewDailyUI(model, modelEx);

                IsProgressing = false;
            }
            IsInitialize = true;
        }
Beispiel #2
0
        public async void OnRefresh()
        {
            await dailyPresenter.GetServiceDaily(id);

            await dailyPresenter.GetServiceDailyExtra(id);
        }