Exemple #1
0
 private void CreatNewInventory()
 {
     SportInventory[] timemas = new SportInventory[inventory.Length + 1];
     for (int i = 0; i < inventory.Length; i++)
     {
         timemas[i] = inventory[i];
     }
     inventory = timemas;
 }
Exemple #2
0
        public void ShowPointInfo()
        {
            Console.Clear();
            SportInventory result = null;

            for (int i = 0; i < inventory.Length; i++)
            {
                result = inventory[i] as Points;
                if (result != null)
                {
                    Console.WriteLine(inventory[i].AllInventory());
                }
            }
        }