示例#1
0
        public InventoryManager()
        {
            Console.WriteLine("[InventoryManager.InventoryManager]" +
                " Adding parts..");

            parts = new Part[5];

            for (int i = 0; i < 5; i++)
            {
                Part part = new Part("Part " + (i + 1));

                Thread.Sleep(10);

                parts[i] = part;

                Console.WriteLine("\tPart '{0}' on-hand = {1}", part.Sku, part.OnHand);
            }
        }
示例#2
0
 public static void LogEvent(Part part)
 {
     Console.WriteLine("\t[CompositeDelegate.LogEvent] " +
         "logging event...");
 }
示例#3
0
 public static void EmailPurchasingMgr(Part part)
 {
     Console.WriteLine("\t[CompositeDelegate.EmailPurchasingMgr]" +
         " emailing Purchasing manager...");
 }