Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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");
 }