예제 #1
0
 public void ConvertHouseObjectPrices(Currency lastCurrency, Currency currentCurrency)
 {
     for (int i = 0; i < houseObjects.Count; i++)
     {
         houseObjects[i].Price = CurrencyHelper.FromCurrencyToCurrency(lastCurrency, houseObjects[i].Price, currentCurrency);
     }
 }
예제 #2
0
        private void ConvertMaterialPrices(Currency lastCurrency, Currency currentCurrency, Category <Material> currentCategory)
        {
            for (int j = 0; j < currentCategory.StoredObjects.Count; j++)
            {
                currentCategory.StoredObjects[j].Price = CurrencyHelper.FromCurrencyToCurrency(lastCurrency,
                                                                                               currentCategory.StoredObjects[j].Price, currentCurrency);
            }

            for (int j = 0; j < currentCategory.SubCategories.Count; j++)
            {
                ConvertMaterialPrices(lastCurrency, currentCurrency, currentCategory.SubCategories[j]);
            }
        }