예제 #1
0
        public void FireSale(string saleDescription)
        {
            if (Sale == null)
            {
                return;
            }

            Company.SaleEventArgs evtArgs = new Company.SaleEventArgs(saleDescription);
            Sale(this, evtArgs);
        }
예제 #2
0
 public void ProcessSaleEvent(Object sender, Company.SaleEventArgs evtArgs)
 {
     Console.WriteLine("\nProcessed sale event");
     Console.WriteLine(Name + " handled the event\n");
     Console.WriteLine(evtArgs.SaleDescription);
 }