示例#1
0
 public static void OnEventShipment(ManufacturerEventArgs e)
 {
     if (EventMAN != null)
     {
         EventMAN(new object(), e);
     }
 }
示例#2
0
        public static void GenShipment()
        {
            ManufacturerEventArgs e1 = new ManufacturerEventArgs();

            OnEventMAN(e1);
        }
示例#3
0
 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);
 }