private void BindAccountCell(AccountCollectionViewCell cell, object model, NSIndexPath indexPath) { var account = model as Account; cell.AccountNameLabel.Text = account.Name; cell.AccountBalanceLabel.Text = CurrenciesList.GetCurrency(account.Currency).GetFormattedValue(account.Balance); }
public void ConfigureFor(WalletTransaction transaction) { CategoryNameLabel.Text = transaction.Category.Name; AmountLabel.Text = CurrenciesList.GetCurrency(transaction.Account.Currency).GetFormattedValue(transaction.Amount); DateLabel.Text = transaction.Date.Date.ToString("d"); AccountNameLabel.Text = transaction.Account.Name; AmountLabel.TextColor = transaction.Amount < 0 ? UIColor.Red : _green; CategoryImageView.Image = UIImage.FromFile("shopping"); }