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 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() { base.UpdateData(); OrderBackround?.SetBackgroundColor(ColorConstants.BlackColor); BackroundContent?.SetBackgroundColor(ColorConstants.BackroundContent); ChangeImage?.SetImageFromResource(DrawableConstants.ChangeIcon); if (BackroundChange != null) { BackroundChange.Click -= Change_Click; BackroundChange.Click += Change_Click; BackroundChange?.SetBackgroundColor(ColorConstants.WhiteColor.SelectorTransparence(ColorConstants.Procent20), 5); BackroundChange?.SetSelectedColor(ColorConstants.WhiteColor.SelectorTransparence(ColorConstants.Procent70)); } if (TableNrText != null) { TableNrText.Text = ROrderTable.TableNo; TableNrText.SetTextColor(ColorConstants.WhiteColor); TableNrText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size18); } if (TableNrValueText != null) { TableNrValueText.Text = OrderManager.Instance.OrderType == OrderVisibility.Local ? TableNumber : OrderManager.Instance.CurrentOrderServer.Code; TableNrValueText.SetTextColor(ColorConstants.SelectorHome); TableNrValueText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size36); } if (ChangeText != null) { ChangeText.Text = ROrderTable.Change.ToUpperInvariant(); ChangeText.SetTextColor(ColorConstants.WhiteColor); ChangeText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size10); } if (ConfirmText == null) { return; } if (OrderManager.Instance.OrderType == OrderVisibility.Local) { ConfirmText.Click -= ConfirmText_Click; ConfirmText.Click += ConfirmText_Click; ConfirmText.Text = ROrderTable.Confirm.ToUpperInvariant(); ConfirmText.SetTextColor(ColorConstants.WhiteColor); ConfirmText.SetBackgroundColor(ColorConstants.SelectorHome); ConfirmText.SetSelectedColor(ColorConstants.SelectorHome.SelectorTransparence(ColorConstants.Procent50)); ConfirmText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14); } else { ConfirmText.Text = ""; ConfirmText.SetBackgroundColor(ColorConstants.BlackColor); ConfirmText.SetTextColor(ColorConstants.BlackColor); } }