Пример #1
0
        public void PrintGemTab(GemTab collection)
        {
            AddGems(collection);

            foreach (var gem in collection)
            {
                Console.WriteLine(gem);
            }
        }
Пример #2
0
        private void AddGems(GemTab inGameShopGemTab)
        {
            inGameShopGemTab.Add(new Gem("Small Ruby", 0.25, 1));
            inGameShopGemTab.Add(new Gem("Medium Ruby", 0.50, 3));
            inGameShopGemTab.Add(new Gem("Large Ruby", 1, 5));

            inGameShopGemTab.Add(new Gem("Small Emerald", 0.25, 1));
            inGameShopGemTab.Add(new Gem("Medium Emerald", 0.50, 3));
            inGameShopGemTab.Add(new Gem("Large Emerald", 1, 5));
        }