public static CollectionViewSource <T> CreateForCollection <T>(string reuseIdentifier, IList <T> dataSource,
                                                                UICollectionView collectionView,
                                                                ICollectionViewSourceDelegate <T> del   = null,
                                                                ICrossCellViewHolder <T> crossCellModel = null, bool register = false,
                                                                Tuple <int, int> widthCountCell         = default(Tuple <int, int>))
 {
     return(new CollectionViewSourceInternal <T>(reuseIdentifier, dataSource, collectionView, del, crossCellModel, register, widthCountCell));
 }
Exemplo n.º 2
0
        public override void UpdateData()
        {
            base.UpdateData();

            OrderManager.Instance.OrderType = OrderVisibility.Server;


            CellModel = new OrdersListCell(this);

            LoadListItems();

            ListView?.SetBackgroundColor(ColorConstants.BackroundContent);
            BackroundContent?.SetBackgroundColor(ColorConstants.BackroundContent);
        }
Exemplo n.º 3
0
            public ViewSourceInternal(string reuseIdentifier, IList <T> dataSource, UITableView tableView,
                                      ITableViewSourceDelegate <T> del, ICrossCellViewHolder <T> crossCellModel = null, bool register = false, bool vertical = false)
                : base(dataSource, tableView)
            {
                _reuseIdentifier = reuseIdentifier;
                _del             = del;
                _crossCellModel  = crossCellModel;
                _dataSource      = dataSource;
                _vertical        = vertical;

                if (register)
                {
                    tableView?.RegisterNibForCellReuse(UINib.FromName(reuseIdentifier, NSBundle.MainBundle), reuseIdentifier);
                }
            }
            public CollectionViewSourceInternal(string reuseIdentifier, IList <T> dataSource,
                                                UICollectionView collectionView, ICollectionViewSourceDelegate <T> del,
                                                ICrossCellViewHolder <T> crossCellModel = null,
                                                bool register = false, Tuple <int, int> centreCell = default(Tuple <int, int>))
                : base(dataSource, collectionView)
            {
                _reuseIdentifier = reuseIdentifier;
                _del             = del;
                _crossCellModel  = crossCellModel;
                _collectionView  = collectionView;
                _centreCell      = centreCell;

                if (register)
                {
                    collectionView?.RegisterNibForCell(UINib.FromName(reuseIdentifier, NSBundle.MainBundle), reuseIdentifier);
                }
            }
Exemplo n.º 5
0
        public override void UpdateData()
        {
            base.UpdateData();

            CellModel1 = new EventsListTagCell(this);
            CellModel2 = new EventsListSubTagCell(this);
            CellModel3 = new EventNameListCell(this);

            BackroundContent?.SetBackgroundColor(ColorConstants.BackroundContent);

            ListView?.UpdateDataSource(EventManager.Instance.GetTagItem());
            ListView?.Orientation(OrientationListView.Horizontal);

            ListSubTagView?.UpdateDataSource(EventManager.Instance.GetMainItemPerDateTime);
            ListSubTagView?.Orientation(OrientationListView.Horizontal);

            ListEventNameView?.UpdateDataSource(EventManager.Instance.GetItemPerDateTime);
            ListEventNameView?.RowCountLimit(3);

            InitViews();
        }
        public override void UpdateData()
        {
            MainWindowView?.SetBackgroundColor(ColorConstants.WhiteColor, 8);

            CellModel2 = new FeedbackListCategoryCell(this);

            BackgroundView?.SetBackgroundColor(ColorConstants.TransparentColor);

            if (SubmitText != null)
            {
                SubmitText.SetTextColor(ColorConstants.WhiteColor);
                SubmitText.Text = "Submit Feedback".ToUpperInvariant();
                SubmitText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14);
                SubmitText.SetBackgroundColor(ColorConstants.SelectorHome);
                SubmitText.Click -= Submit_Click;
                SubmitText.Click += Submit_Click;
                SubmitText.SetSelectedColor(ColorConstants.WhiteColor);
            }

            if (TitleText != null)
            {
                TitleText.Text = RFeedback.GiveUsFedbackText;
                TitleText.SetTextColor(ColorConstants.FeedbackTitle);
                TitleText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size24);
            }

            if (CloseImage != null)
            {
                CloseImage?.SetImageFromResource(DrawableConstants.FeedbackCloseIcon);
                CloseImage.Click -= BackgroundView_Click;
                CloseImage.Click += BackgroundView_Click;
            }

            //ListViewCategory?.UpdateDataSource(FeedbackManager.Instance.GetCategoryItem());
            //ListViewCategory?.Orientation(OrientationListView.Horizontal);

            ListViewEmoji?.UpdateDataSource(FeedbackManager.Instance.GetItem());
            ListViewEmoji?.Orientation(OrientationListView.Horizontal);
        }
Exemplo n.º 7
0
 public EmojiFeedbackListCellViewHolder(LayoutInflater inflator, ViewGroup parent,
                                        ICrossCellViewHolder <IFeedback> cellModel)
     : base(inflator.Inflate(Resource.Layout.emoji_item_feedback, parent, false), cellModel)
 {
 }
Exemplo n.º 8
0
 public OrdersItemCellViewHolder(LayoutInflater inflator, ViewGroup parent,
                                 ICrossCellViewHolder <OrderModel> cellModel)
     : base(inflator.Inflate(Resource.Layout.order_item_list, parent, false), cellModel)
 {
 }
Exemplo n.º 9
0
 public EventsListSubTagCellViewHolder(LayoutInflater inflator, ViewGroup parent,
                                       ICrossCellViewHolder <IEvent> cellModel)
     : base(inflator.Inflate(Resource.Layout.item_list_tag2, parent, false), cellModel)
 {
 }
Exemplo n.º 10
0
 public EventNameCellViewHolder(LayoutInflater inflator, ViewGroup parent,
                                ICrossCellViewHolder <IEvent> cellModel)
     : base(inflator.Inflate(Resource.Layout.item_name_event_list, parent, false), cellModel)
 {
 }
 protected ComponentViewHolder(View view, ICrossCellViewHolder <T> vmodel) : base(view)
 {
     CrossCellModel = vmodel;
     Initialize();
 }
Exemplo n.º 12
0
 public ServicesFeedbackListCellViewHolder(LayoutInflater inflator, ViewGroup parent,
                                           ICrossCellViewHolder <Core.Models.Contract.ICategory> cellModel)
     : base(inflator.Inflate(Resource.Layout.service_item_feedback, parent, false), cellModel)
 {
 }
Exemplo n.º 13
0
 public static ComponentViewSource <T> CreateForTable <T>(string reuseIdentifier, IList <T> dataSource,
                                                          UITableView tableView, ITableViewSourceDelegate <T> del = null,
                                                          ICrossCellViewHolder <T> crossCellModel = null, bool register = false, bool vertical = false)
 {
     return(new ViewSourceInternal <T>(reuseIdentifier, dataSource, tableView, del, crossCellModel, register, vertical));
 }
Exemplo n.º 14
0
 public static ComponentViewSource <T> CreateForTable <T>(string reuseIdentifier, IList <T> dataSource,
                                                          ITableViewSourceDelegate <T> del        = null,
                                                          ICrossCellViewHolder <T> crossCellModel = null, bool register = false)
 {
     return(CreateForTable(reuseIdentifier, dataSource, null, del, crossCellModel, register));
 }
Exemplo n.º 15
0
 public HomeItemCellViewHolder(LayoutInflater inflator, ViewGroup parent,
                               ICrossCellViewHolder <IItemMenu> cellModel)
     : base(inflator.Inflate(Resource.Layout.home_list_item, parent, false), cellModel)
 {
 }
Exemplo n.º 16
0
 public OrderItemCellViewHolder(LayoutInflater inflator, ViewGroup parent,
                                ICrossCellViewHolder <IOrderContent> cellModel)
     : base(inflator.Inflate(Resource.Layout.cart_item_list, parent, false), cellModel)
 {
 }
Exemplo n.º 17
0
 public BeerItemCellViewHolder(LayoutInflater inflator, ViewGroup parent,
                               ICrossCellViewHolder <List <IBeerContent> > cellModel)
     : base(inflator.Inflate(Resource.Layout.ber_list_item, parent, false), cellModel)
 {
 }