public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = (CardInfoTableViewCell)tableView.DequeueReusableCell(CellIdentifier); OvCardResponse card = cards[indexPath.Row]; cell.UpdateData(card); return(cell); }
public void UpdateData(OvCardResponse response) { CardInfo = response; AliasLabel.Text = response.Alias; NumberLabel.Text = response.MediumId .Insert(4, " ") .Insert(9, " ") .Insert(14, " "); string balance = response.Balance.ToString(); EuroLabel.Text = balance.Substring(0, balance.Length - 2) + ","; CentLabel.Text = balance.Substring(balance.Length - 2, 2); }