Exemplo n.º 1
0
        public ActionEventClass SubscribeCancelled(ActionDelegate del, int priority = 0)
        {
            ActionEventClass eventClass = new ActionEventClass(del, priority);

            eventClass.Cancelled = true;
            sortedDelegates.InsertIntoSortedList(eventClass);
            return(eventClass);
        }
Exemplo n.º 2
0
        public ActionEventClass SubscribePerformed(ActionDelegate del, int priority = 0)
        {
            ActionEventClass eventClass = new ActionEventClass(del, sortedDelegates.Count);

            eventClass.Performed = true;
            sortedDelegates.Add(eventClass);

            return(eventClass);
        }
Exemplo n.º 3
0
 public void UnSubscribe(ActionEventClass ev)
 {
     sortedDelegates.Remove(ev);
 }