Пример #1
0
 public AppLanding()
 {
     InitializeComponent();
     ivm = new IntroPageViewModel();
     ivm.GetDeals();
     ivm.GetCategories();
     ivm.GetAll();
     Deals_Tapped(this, null);
     //ShowSurVeyOne();
 }
Пример #2
0
 private void RefreshCategoryListView()
 {
     ListCategories.RefreshCommand = new Command(() =>
     {
         IntroPageViewModel ivmm = new IntroPageViewModel();
         ivmm.GetCategories();
         ivmm.GetDeals();
         ivmm.GetAll();
         this.BindingContext         = ivmm;
         ListCategories.IsRefreshing = false;
     });
 }
Пример #3
0
        //private void RefreshListView()
        //{
        //    dealsListview.RefreshCommand = new Command(()=>

        //    {
        //        IntroPageViewModel vm = new IntroPageViewModel();
        //        vm.GetDeals();
        //        this.BindingContext = vm;
        //        dealsListview.IsRefreshing = false;
        //    });
        //}

        private void RefreshListView()
        {
            dealsListview.RefreshCommand = new Command(() =>

            {
                IntroPageViewModel vm = new IntroPageViewModel();
                vm.GetDeals();
                vm.GetCategories();
                vm.GetAll();
                this.BindingContext        = vm;
                dealsListview.IsRefreshing = false;
            });
        }
Пример #4
0
 public AppLanding()
 {
     InitializeComponent();
     try
     {
         ivm = new IntroPageViewModel();
         ivm.GetDeals();
         ivm.GetCategories();
         ivm.GetAll();
         ivm.GetAllSearchFromNewModel();
         ivm.GetAllThisWeek();
         Deals_Tapped(this, null);
         ShowSurVeyOne();
     }
     catch (Exception ex)
     {
         var log = ex;
     }
 }
Пример #5
0
        private void RefreshListView()
        {
            dealsListview.RefreshCommand = new Command(async() =>

            {
                ivm = new IntroPageViewModel();
                ivm.GetDeals();
                ivm.GetCategories();
                ivm.GetAll();
                // await Task.Delay(3000);
                ivm.GetAllThisWeek();

                var groupByDate = GroupListByDate();
                //GlobalStaticFields.GetAllGrouping = groupByDate;
                BindingContext = groupByDate;
                await Task.Delay(3000);
                dealsListview.IsRefreshing = false;
            });
        }
Пример #6
0
 public AppLanding()
 {
     InitializeComponent();
     try
     {
         ivm  = new IntroPageViewModel();
         mcvm = new MyCreatedCollectionViewModel();
         ivm.GetDeals();
         ivm.GetCategories();
         ivm.GetAll();
         ivm.GetAllSearchFromNewModel();
         ivm.GetAllThisWeek();
         ivm.Initializefavourites();
         mcvm.InitializeFavListNewUI();
         ThisWeek_Tapped(this, null);
         ShowSurVeyOne();
         this.BindingContext = this;
     }
     catch (Exception ex)
     {
         var log = ex;
     }
 }