void SetUpTableView() { tokenCell = new TokenPaymentCell(new IntPtr()); tokenCell = (TokenPaymentCell)tokenCell.Create(); tokenCell.CardType = tokenPayment.CardType; tokenCell.LastFour = tokenPayment.LastFour; tokenCell.UpdateUI = () => { UpdateUI(); }; CellsToShow = new List <CardCell> () { tokenCell }; CardCellSource tableSource = new CardCellSource(CellsToShow); TableView.Source = tableSource; }
void SetUpTableView() { detailCell = new CardEntryCell(new IntPtr()); reassuringCell = new ReassuringTextCell(new IntPtr()); avsCell = new AVSCell(new IntPtr()); maestroCell = new MaestroCell(new IntPtr()); detailCell = (CardEntryCell)detailCell.Create(); reassuringCell = (ReassuringTextCell)reassuringCell.Create(); avsCell = (AVSCell)avsCell.Create(); maestroCell = (MaestroCell)maestroCell.Create(); detailCell.UpdateUI = () => { UpdateUI(); }; avsCell.UpdateUI = () => { UpdateUI(); }; maestroCell.UpdateUI = () => { UpdateUI(); }; CellsToShow = new List <CardCell> () { detailCell, reassuringCell }; CardCellSource tableSource = new CardCellSource(CellsToShow); TableView.Source = tableSource; TableView.SeparatorColor = UIColor.Clear; }