public TableExchangeRateEntity(TableExchangeRate tableExchangeRate) { CurrencyCode = tableExchangeRate.CurrencyCode; CurrencyName = tableExchangeRate.CurrencyName; Bid = tableExchangeRate.Bid; Ask = tableExchangeRate.Ask; }
public DetailsPage(TableExchangeRate exchangeRate) { InitializeComponent(); Title = $"{exchangeRate.CurrencyName} ({exchangeRate.CurrencyCode})"; DetailsViewModel = new DetailsViewModel(exchangeRate.CurrencyCode); BindingContext = DetailsViewModel; }