Beispiel #1
0
 public static void OnEventACME(ACMEEventArgs e)
 {
     if (EventACME != null)
     {
         EventACME(new object(), e);
     }
 }
Beispiel #2
0
 public void HeardIt(object o, ACMEEventArgs e)
 {        //When ACME places an order for a new shipment
     //and that shipment can be delivered before the end of the year,
     //the order fee of 2000 is taken away on that day. Or else, no fee is charged if the
     //shipment will not arrive before the end of the year.
     if (ShipDay > 365)
     {
         //Console.WriteLine("The shipment will not arrive before the end of the year!");
         //Console.WriteLine("The shipment has been cancelled and the order fee has not been deducted.");
     }
     else
     {
         //Console.WriteLine("We are sending you {0} GAD in {1} days!!!",e.StdOrder, LeadTime);
         e.profit -= 2000.0;
     }
 }
Beispiel #3
0
        public static void GenReorder(int s, Random r)
        {
            ACMEEventArgs e1 = new ACMEEventArgs();

            OnEventACME(e1);
        }