示例#1
0
        public ActionEventClass SubscribeCancelled(ActionDelegate del, int priority = 0)
        {
            ActionEventClass eventClass = new ActionEventClass(del, priority);

            eventClass.Cancelled = true;
            sortedDelegates.InsertIntoSortedList(eventClass);
            return(eventClass);
        }
示例#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);
        }
示例#3
0
 public void UnSubscribe(ActionEventClass ev)
 {
     sortedDelegates.Remove(ev);
 }