Exemplo n.º 1
0
        public DetailPage(NewDealsModel.Deal AllDeals)
        {
            InitializeComponent();

            AllNewDeals = new NewDealsModel.Deal();

            AllNewDeals       = AllDeals;
            MapsAddress       = AllNewDeals.Owner_Location;
            hostOrEventName   = AllNewDeals.Name;
            previousPageTitle = AllNewDeals.Category;
            //DaysOpenListView.ItemsSource = AllNewDeals.DaysOpen;
            // var returnedList = ReturnDaysAsListAndSetListViewItemSource(AllDeals.OpeningHours);
            if (dealz?.Pictures?.Count > 0)
            {
                Carousel.IsVisible      = true;
                SinglePicture.IsVisible = false;
                //Carousel.ItemsSource = dealz.Pictures;
                AutoSlide(dealz?.Pictures?.Count);
            }
            else
            {
                Carousel.IsVisible      = false;
                SinglePicture.IsVisible = true;
            }
            BindingContext = AllNewDeals;
        }
Exemplo n.º 2
0
        private void TapPlus_Tapped(object sender, EventArgs e)
        {
            try
            {
                var args = (TappedEventArgs)e;
                var m    = args.Parameter as NewDealsModel.Deal;
                NewDealsModel.Deal md = new NewDealsModel.Deal();

                md.Name     = m?.Name;
                md.Category = m?.Category;
                //md.CategoryId = m?.CategoryId;
                md.Created         = m.Created;
                md.Details         = m?.Details;
                md.Expiration_Date = m.Expiration_Date;
                md.Id             = Convert.ToInt32(m.Id);
                md.ImagePath      = m?.ImagePath;
                md.Owner_Location = m?.Owner_Location;
                md.Owner          = m?.Owner;
                md.Modified       = m.Modified;
                md.Owner_Id       = Convert.ToInt32(m?.Owner_Id);
                //md.type = m?.type;
                //md.User_Id = m?.User_Id?.ToString();


                Navigation.PushAsync(new AppViews.Favourites(md), true);
            }
            catch (Exception ex)
            {
                var log = ex;
            }
        }
Exemplo n.º 3
0
 public Favourites(NewDealsModel.Deal deals)// from categories
 {
     InitializeComponent();
     fvvm.IsEnabled = true;
     fav            = deals;
     fvvm.CurrentlySelectedFavorite = fav;
     GetFavList();
 }
        public MyCreatedCollections(NewDealsModel.Deal deals)
        {
            InitializeComponent();

            mcvm = new MyCreatedCollectionViewModel
            {
                IsEnabled = true,
                CurrentlySelectedFavoriteDeal = deals
            };
            mcvm.GetListCollection();

            BindingContext = mcvm;
        }
Exemplo n.º 5
0
        public MyPage(NewDealsModel.Deal AllDeals)
        {
            InitializeComponent();

            AllNewDeals = new NewDealsModel.Deal();

            AllNewDeals = AllDeals;
            //MapsAddress = AllNewDeals.Owner_Location;
            //hostOrEventName = AllNewDeals.Name;
            DaysOpenListView.ItemsSource = AllNewDeals.DaysOpen;
            // var returnedList = ReturnDaysAsListAndSetListViewItemSource(AllDeals.OpeningHours);

            BindingContext = AllNewDeals;
        }