public static void OnEventShipment(ManufacturerEventArgs e) { if (EventMAN != null) { EventMAN(new object(), e); } }
public static void GenShipment() { ManufacturerEventArgs e1 = new ManufacturerEventArgs(); OnEventMAN(e1); }
public void UpdateStock(object o, ManufacturerEventArgs e) { //When a new shipment arrives, the stock is updated on that day. stock += StdOrder; //Console.WriteLine("->A new shipment arrived! The stock level is now {0}",stock); }