partial void EditBasketDidTouch(UIButton sender) { if (isEditing) { isEditing = false; EditTableButton.SetTitle("Editar", UIControlState.Normal); BasketTableView.SetEditing(false, true); } else { isEditing = true; EditTableButton.SetTitle("Listo", UIControlState.Normal); BasketTableView.SetEditing(true, true); } }
void ReleaseDesignerOutlets() { if (BasketTableView != null) { BasketTableView.Dispose(); BasketTableView = null; } if (CheckoutButton != null) { CheckoutButton.Dispose(); CheckoutButton = null; } if (EditTableButton != null) { EditTableButton.Dispose(); EditTableButton = null; } if (SubtotalOrderLabel != null) { SubtotalOrderLabel.Dispose(); SubtotalOrderLabel = null; } if (TaxesLabel != null) { TaxesLabel.Dispose(); TaxesLabel = null; } if (TotalLabel != null) { TotalLabel.Dispose(); TotalLabel = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); rows = new List <Schemas.Product.ProductInfo>(); var product = new Schemas.Product.ProductInfo(); product.Id = 1; product.Name = "CONTPAQI® XML EN LÍNEA +, MULTIEMPRESA, LICENCIA ANUAL 100 USUARIO(S) - PAQUETE(PLXLMUL)"; rows.Add(product); var product1 = new Schemas.Product.ProductInfo(); product1.Id = 2; product1.Name = "CONTPAQI® BANCOS, MULTIEMPRESA, LICENCIA ANUAL 3 USUARIO(S) - RENOVACIÓN(ALBANLA)"; rows.Add(product1); BasketSource TableSource = new BasketSource(rows, this); BasketTableView.Source = TableSource; BasketTableView.RowHeight = 176f; BasketTableView.ReloadData(); BasketTableView.TableFooterView = new UIView(); CheckoutButton.Layer.CornerRadius = 8; }