예제 #1
0
        public void Add(PandoraEventHandler eventHandler, Dictionary eventData)
        {
            PandoraEventItem newEventItem = new PandoraEventItem(_source, eventHandler, eventData);

            Bind(newEventItem);
            _eventList.Add(newEventItem);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void Bind(PandoraEventItem eventItem)
 {
     _source.SetBind(_eventName, new Dictionary("eventItem", eventItem), EventHook);
 }
예제 #4
0
 public void Bind(PandoraEventItem eventItem)
 {
     _source.SetBind(_eventName, new Dictionary("eventItem", eventItem), EventHook);
 }
예제 #5
0
 public void Add(PandoraEventHandler eventHandler, Dictionary eventData)
 {
     PandoraEventItem newEventItem = new PandoraEventItem(_source, eventHandler, eventData);
     Bind(newEventItem);
     _eventList.Add(newEventItem);
 }