public void Add(PandoraEventHandler eventHandler, Dictionary eventData) { PandoraEventItem newEventItem = new PandoraEventItem(_source, eventHandler, eventData); Bind(newEventItem); _eventList.Add(newEventItem); }
private void EventHook(object source, object[] args) { jQueryEvent e = (jQueryEvent)source; PandoraEventItem eventItem = (PandoraEventItem)e.Data["eventItem"]; List <object> objArr = new List <object>(); objArr.Add(e); if (args != null) { foreach (object o in args) { objArr.Add(o); } } eventItem.Invoke(objArr); }
public void Bind(PandoraEventItem eventItem) { _source.SetBind(_eventName, new Dictionary("eventItem", eventItem), EventHook); }