public static LocalEventSource Subtract(LocalEventSource eventSource, Delegate eventHandlerDelegate) { XTask.CurrentExecutingTask.RemoveEventHandler(eventHandlerDelegate); eventSource.Delegates.Remove(eventHandlerDelegate); return eventSource; }
public static LocalEventSource Subtract(LocalEventSource eventSource, Delegate eventHandlerDelegate) { XTask.CurrentExecutingTask.RemoveEventHandler(eventHandlerDelegate); eventSource.Delegates.Remove(eventHandlerDelegate); return(eventSource); }
public static LocalEventSource Add(LocalEventSource eventSource, Delegate eventHandlerDelegate) { XTask.CurrentExecutingTask.AddEventHandler(eventHandlerDelegate); eventSource.Delegates.Add(eventHandlerDelegate); return eventSource; }
public static LocalEventSource Add(LocalEventSource eventSource, Delegate eventHandlerDelegate) { XTask.CurrentExecutingTask.AddEventHandler(eventHandlerDelegate); eventSource.Delegates.Add(eventHandlerDelegate); return(eventSource); }