Exemplo n.º 1
0
        protected override void BindViews()
        {
            base.BindViews();

            TableViewMenu = MenuView.TableView;

            ModelView.CurrentPageName = GetType().Name;

            if (!TableViewMenu.IsNull())
            {
                TableViewMenu.Source = ComponentViewSourceFactory.CreateForTable(nameof(MenuViewCell),
                                                                                 new List <IItemMenu>(),
                                                                                 TableViewMenu,
                                                                                 crossCellModel: new SideMenuCell(ModelView), register: true);
            }

            if (ModelView.TypeMenu != HeaderAreaActionType.Back)
            {
                View.OnSwipe((obj) =>
                {
                    switch (obj.Direction)
                    {
                    case UISwipeGestureRecognizerDirection.Left:
                        SwipeLeftToRight();
                        break;

                    case UISwipeGestureRecognizerDirection.Right:
                        SwipeRightToLeft();
                        break;
                    }
                });
            }
            ModelView.MenuOpen = PerformTableTransition;
        }
Exemplo n.º 2
0
        protected override void BindViews()
        {
            base.BindViews();

            TableView.Source = ComponentViewSourceFactory.CreateForTable(nameof(HomeCell),
                                                                         new List <IItemMenu>(),
                                                                         TableView,
                                                                         crossCellModel: new HomeViewModel.HomeListCell(ModelView));
        }
Exemplo n.º 3
0
        protected override void BindViews()
        {
            base.BindViews();

            TableView.Source = ComponentViewSourceFactory.CreateForTable(nameof(FeedbackCell),
                                                                         new List <IFeedback>(),
                                                                         TableView,
                                                                         crossCellModel: new FeedbackViewModel.FeedbackListCell(ModelView));
        }
Exemplo n.º 4
0
        protected override void BindViews()
        {
            base.BindViews();

            var source = ComponentViewSourceFactory.CreateForTable(nameof(BeerListCell),
                                                                   new List <List <IBeerContent> >(),
                                                                   TableView,
                                                                   crossCellModel: new BeerListViewModel.BeerListCell(ModelView));

            TableView.Source = source;
        }
Exemplo n.º 5
0
        protected override void BindViews()
        {
            base.BindViews();

            var source = ComponentViewSourceFactory.CreateForTable(nameof(OrdersCell),
                                                                   new List <Core.Models.DTO.Order.Get.OrderModel>(),
                                                                   TableView,
                                                                   crossCellModel: new OrdersViewModel.OrdersListCell(ModelView));

            TableView.Source = source;
        }
Exemplo n.º 6
0
        protected override void BindViews()
        {
            base.BindViews();

            var source = ComponentViewSourceFactory.CreateForTable(nameof(OrderBarCell),
                                                                   new List <IOrderContent>(),
                                                                   TableView,
                                                                   crossCellModel: new OrderListBaseCell(ModelView));

            TableView.Source = source;
        }
Exemplo n.º 7
0
        protected override void BindViews()
        {
            base.BindViews();

            var source = ComponentViewSourceFactory.CreateForTable(nameof(OrderCell),
                                                                   new List <IOrderContent>(),
                                                                   TableView,
                                                                   crossCellModel: new OrderViewModel.OrderListCell(ModelView));

            TableView.Source = source;

            ModelView.GetPayment -= ModelView_GetPayment;
            ModelView.GetPayment += ModelView_GetPayment;
        }
Exemplo n.º 8
0
        protected override void BindViews()
        {
            base.BindViews();

            CollectionView.Source = ComponentViewSourceFactory.CreateForCollection(nameof(EventCollectionCell),
                                                                                   new List <IEvent>(),
                                                                                   CollectionView,
                                                                                   crossCellModel: new EventsViewModel.EventsListTagCell(ModelView));

            var daa = CollectionView.CollectionViewLayout as UICollectionViewFlowLayout;

            daa.ScrollDirection   = UICollectionViewScrollDirection.Horizontal;
            daa.EstimatedItemSize = new CoreGraphics.CGSize(1, 33);

            CollectionViewSubTag.Source = ComponentViewSourceFactory.CreateForCollection(nameof(EventCollectionSubTagCell),
                                                                                         new List <IEvent>(),
                                                                                         CollectionViewSubTag,
                                                                                         crossCellModel: new EventsViewModel.EventsListSubTagCell(ModelView));

            TableView.Source = ComponentViewSourceFactory.CreateForTable(nameof(EventNameCell),
                                                                         new List <IEvent>(),
                                                                         TableView,
                                                                         crossCellModel: new EventsViewModel.EventNameListCell(ModelView));
        }