Example #1
0
 static void Main(string[] args)
 {
     handler += new delEvent(Circle);
     handler += new delEvent(Square);
     handler.Invoke();
     Console.ReadKey();
 }
        public void Delete(int id)
        {
            iDelEvent deleteObject = new delEvent();

            deleteObject.DeleteOrderEvent(id);
            Console.WriteLine(id);
        }
Example #3
0
        public void PrintQueue()
        {
            while (eventQueue.Count != 0)
            {
                eventFunc = eventQueue.Peek();
                eventFunc();
                eventQueue.Dequeue();
            }

            Console.WriteLine(string.Format("-------------------"));
        }