예제 #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);
 }