public void SetProps(AccountProps props)
        {
            _props             = props;
            _accountLabel.Text = _props.Name;

            _balance.Text      = _props.Balance;
            _balance.TextColor = UIColor.FromRGB(_props.TextColor.R, _props.TextColor.G, _props.TextColor.B);
        }
Exemple #2
0
 public static IEnumerable <string> AccountPaths(string path = null) => AccountProps
 .Concat(AccountTypePaths(nameof(Account.AccountType)))
 .Concat(CenterPaths(nameof(Account.Center)))
 .Concat(EntryTypePaths(nameof(Account.EntryType)))
 .Concat(CurrencyPaths(nameof(Account.Currency)))
 .Concat(AgentPaths(nameof(Account.Agent)))
 .Concat(AccountResourcePaths(nameof(Account.Resource)))
 .Concat(AgentPaths(nameof(Account.NotedAgent)))
 .Concat(ResourcePaths(nameof(Account.NotedResource)))
 .Select(p => path == null ? p : $"{path}.{p}");