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); }
public void PrintQueue() { while (eventQueue.Count != 0) { eventFunc = eventQueue.Peek(); eventFunc(); eventQueue.Dequeue(); } Console.WriteLine(string.Format("-------------------")); }