Exemple #1
0
 public RatesVM()
 {
     CurrencyInformationCollection = new List <CurrencyInformation>();
     foreach (CurrencyInformation c in CurrencyInformation.ImportantCurrencies)
     {
         CurrencyRate        rate        = CurrencyBLInstance.getRate(c.Initials, DateTime.Now);
         CurrencyInformation information = new CurrencyInformation(c.Initials, c.Description, c.PathToImage);
         information.Rate       = rate;
         information.Rate.Value = Math.Round(information.Rate.Value, 3);
         CurrencyInformationCollection.Add(information);
     }
 }
 public static bool Exchange(double amount, CurrencyInformation firstCurrency, CurrencyInformation secondCurrency)
 {
     // TODO: implement
     return(false);
 }