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;
        }
示例#2
0
        protected override void BindViews()
        {
            base.BindViews();

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

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

            CollectionView.Source = ComponentViewSourceFactory.CreateForCollection(nameof(StatusCollectionCell),
                                                                                   new List <IFeedback>(),
                                                                                   CollectionView,
                                                                                   crossCellModel: new FeedbackGiveViewModel.StatusFeedbackListCell(ModelView),
                                                                                   widthCountCell: Tuple.Create(_heightAndSpaceStatus, FeedbackManager.Instance.GetItem().Count));
        }
示例#5
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;
        }
示例#6
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;
        }
示例#7
0
        protected override void BindViews()
        {
            base.BindViews();

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

            TableView.Source = source;
        }
示例#8
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;
        }
示例#9
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));
        }