Beispiel #1
0
 // Helper to raise any page event
 void RaisePageEvent(PageEventHandler handler, PageEventArgs e)
 {
     if (handler != null)
     {
         handler(this, e);
     }
 }
Beispiel #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;
     }
 }