Ejemplo n.º 1
0
 // Helper to raise any page event
 void RaisePageEvent(PageEventHandler handler, PageEventArgs e)
 {
     if (handler != null)
     {
         handler(this, e);
     }
 }
Ejemplo n.º 2
0
 protected void AddEventHandler(string EventName, PageEventHandler handler)
 {
     if (!handlers.ContainsKey(EventName))
     {
         handlers[EventName] = handler;
     }
     else
     {
         handlers[EventName] = PageEventHandler.Combine(handlers[EventName], handler) as PageEventHandler;
     }
 }