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)); }
public override void UpdateData() { base.UpdateData(); OrderManager.Instance.OrderType = OrderVisibility.Server; CellModel = new OrdersListCell(this); LoadListItems(); ListView?.SetBackgroundColor(ColorConstants.BackroundContent); BackroundContent?.SetBackgroundColor(ColorConstants.BackroundContent); }
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); } }
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); }
public EmojiFeedbackListCellViewHolder(LayoutInflater inflator, ViewGroup parent, ICrossCellViewHolder <IFeedback> cellModel) : base(inflator.Inflate(Resource.Layout.emoji_item_feedback, parent, false), cellModel) { }
public OrdersItemCellViewHolder(LayoutInflater inflator, ViewGroup parent, ICrossCellViewHolder <OrderModel> cellModel) : base(inflator.Inflate(Resource.Layout.order_item_list, parent, false), cellModel) { }
public EventsListSubTagCellViewHolder(LayoutInflater inflator, ViewGroup parent, ICrossCellViewHolder <IEvent> cellModel) : base(inflator.Inflate(Resource.Layout.item_list_tag2, parent, false), cellModel) { }
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(); }
public ServicesFeedbackListCellViewHolder(LayoutInflater inflator, ViewGroup parent, ICrossCellViewHolder <Core.Models.Contract.ICategory> cellModel) : base(inflator.Inflate(Resource.Layout.service_item_feedback, parent, false), cellModel) { }
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)); }
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)); }
public HomeItemCellViewHolder(LayoutInflater inflator, ViewGroup parent, ICrossCellViewHolder <IItemMenu> cellModel) : base(inflator.Inflate(Resource.Layout.home_list_item, parent, false), cellModel) { }
public OrderItemCellViewHolder(LayoutInflater inflator, ViewGroup parent, ICrossCellViewHolder <IOrderContent> cellModel) : base(inflator.Inflate(Resource.Layout.cart_item_list, parent, false), cellModel) { }
public BeerItemCellViewHolder(LayoutInflater inflator, ViewGroup parent, ICrossCellViewHolder <List <IBeerContent> > cellModel) : base(inflator.Inflate(Resource.Layout.ber_list_item, parent, false), cellModel) { }