示例#1
0
 public static LocalEventSource Subtract(LocalEventSource eventSource, Delegate eventHandlerDelegate) {
     XTask.CurrentExecutingTask.RemoveEventHandler(eventHandlerDelegate);
     eventSource.Delegates.Remove(eventHandlerDelegate);
     return eventSource;
 }
示例#2
0
 public static LocalEventSource Subtract(LocalEventSource eventSource, Delegate eventHandlerDelegate)
 {
     XTask.CurrentExecutingTask.RemoveEventHandler(eventHandlerDelegate);
     eventSource.Delegates.Remove(eventHandlerDelegate);
     return(eventSource);
 }
示例#3
0
 public static LocalEventSource Add(LocalEventSource eventSource, Delegate eventHandlerDelegate) {
     XTask.CurrentExecutingTask.AddEventHandler(eventHandlerDelegate);
     eventSource.Delegates.Add(eventHandlerDelegate);
     return eventSource;
 }
示例#4
0
 public static LocalEventSource Add(LocalEventSource eventSource, Delegate eventHandlerDelegate)
 {
     XTask.CurrentExecutingTask.AddEventHandler(eventHandlerDelegate);
     eventSource.Delegates.Add(eventHandlerDelegate);
     return(eventSource);
 }