public static void Initialize() { DatabaseMethods db = new DatabaseMethods(); //db.UpdateCurrenciesConversionRates(); m_rates = db.GetFX_Rate(); m_CurrID_Curr = db.GetCurrencies(); m_CurrCode_Curr = new Dictionary <string, CurrencyItem>(); foreach (KeyValuePair <int, CurrencyItem> kvp in m_CurrID_Curr) { m_CurrCode_Curr.Add(kvp.Value.Code, kvp.Value); } db = null; }