Example #1
0
 protected virtual void FireEvent(string eventName, object[] objData)
 {
     DataEventArgument args = new DataEventArgument(objData);
     lock (m_eventList)
     {
         EventHandler handler = (EventHandler)m_eventList[eventName];
         if (handler != null)
         {
             EventHelper.FireEventAsync(handler, this, args);
         }
     }
 }
Example #2
0
        protected virtual void FireEvent(string eventName, object[] objData)
        {
            DataEventArgument args = new DataEventArgument(objData);

            lock (m_eventList)
            {
                EventHandler handler = (EventHandler)m_eventList[eventName];
                if (handler != null)
                {
                    EventHelper.FireEventAsync(handler, this, args);
                }
            }
        }