Пример #1
0
        protected internal async Task GetHomeView()
        {
            using (UserDialogs.Instance.Loading("loading"))
            {
                await Task.Delay(1);

                ContentStackLayout.Children.Clear();
                PageTitle.Text    = "Dashboard";
                _homeDataResponse = await ApiService.Instance.GetDataFromServerTask <HomeDataRequestModel, HomeDataResponseModel>(new HomeDataRequestModel()
                {
                    ProgramId     = AppSettingHelper.ProgramId,
                    ParticipantId = AppSettingHelper.ParticipantId
                }, ApiConstants.HomeDataUrl);

                var view2 = new HomeView(_homeDataResponse);
                view2.InitPage();
                ContentStackLayout.Children.Add(view2);
                InitNavigationLinksObjects();
                RefreshNavigationButtons();
            }
        }