Пример #1
0
        private static void LoadStateDictionary()
        {
            // TODO 22: Replace this hard-coded data with a call to the StateFileLoader.
            StateFileLoader loader = new StateFileLoader("States.txt");

            stateCodes = new StateDictionary(loader.StateList);
        }
Пример #2
0
        private static void LoadStateDictionary()
        {
            // TODO 22: Replace this hard-coded data with a call to the StateFileLoader.

            StateFileLoader loader = new StateFileLoader("States.txt");

            stateCodes = new StateDictionary(loader.StateList);

            //stateCodes = new StateDictionary(
            //    new List<State>()
            //    {
            //        new State("OH", "Ohio", "Cleveland", "Timberlake"),
            //        new State("FL", "Florida", "Disney World", "Shady Oaks Retirement Community")
            //    }
            //);
        }