Esempio n. 1
0
 private void AddIncentiveView(OpportunitiesView view, Incentive incentive)
 {
     using (UserDialogs.Instance.Loading("loading"))
     {
         ContentStackLayout.Children.Clear();
         var view1 = new OpportunityDetailView(incentive);
         view1.InitOpportunitiesDetail();
         ContentStackLayout.Children.Add(view1);
     }
 }
Esempio n. 2
0
 private async Task GetOppView()
 {
     using (UserDialogs.Instance.Loading("loading"))
     {
         PageTitle.Text = "Opportunities";
         ContentStackLayout.Children.Clear();
         if (_opportunityResponseModel == null)
         {
             _opportunityResponseModel = await ApiService.Instance.GetDataFromServerTask <HomeDataRequestModel, OpportunityResponseModel>(
                 new HomeDataRequestModel()
             {
                 ProgramId     = AppSettingHelper.ProgramId,
                 ParticipantId = AppSettingHelper.ParticipantId
             }, ApiConstants.OpportunityPageUrl);
         }
         var view1 = new OpportunitiesView(_opportunityResponseModel);
         ContentStackLayout.Children.Add(view1);
     }
 }