Пример #1
0
        private static void InventoryValue()
        {
            ProductInventory myInventory;

            while (true)
            {
                try
                {
                    myInventory = new ProductInventory();
                    myInventory.LoadInventory();
                    Console.WriteLine($"\nThe total value of goods on hand is: {myInventory.ValueOfGoodsOnHand().ToString("C2")}");
                    break;
                }
                catch (Exception ex)
                {
                    Console.WriteLine("\n****** ERROR: " + ex.Message);
                }
            }
        }