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); } }
public static void LogEvent(Part part) { Console.WriteLine("\t[CompositeDelegate.LogEvent] " + "logging event..."); }
public static void EmailPurchasingMgr(Part part) { Console.WriteLine("\t[CompositeDelegate.EmailPurchasingMgr]" + " emailing Purchasing manager..."); }