public void UpdateCell(SegmentQty segQty) { titleLabel.Text = segQty.Product; piecesLabel.Text = string.Format("Pieces: {0}", segQty.Pieces.ToString()); cartonsLabel.Text = string.Format("Cartons: {0}", segQty.Cartons.ToString()); descriptionLabel.Text = segQty.ToString(); if (segQty.ProductionType == "Accumulating") { ContentView.BackgroundColor = UIColor.Clear.FromHexString("#87CEFA"); } else { ContentView.BackgroundColor = UIColor.Clear.FromHexString("#316BBD"); } }
public void UpdateCell(SegmentQty segQty) { titleLabel.Text = segQty.Product; piecesLabel.Text = string.Format ("Pieces: {0}", segQty.Pieces.ToString ()); cartonsLabel.Text = string.Format ("Cartons: {0}", segQty.Cartons.ToString ()); descriptionLabel.Text = segQty.ToString(); if (segQty.ProductionType == "Accumulating") ContentView.BackgroundColor = UIColor.Clear.FromHexString("#87CEFA"); else ContentView.BackgroundColor = UIColor.Clear.FromHexString("#316BBD"); }