예제 #1
0
 /// <summary>
 /// Adds the specified listener to the specified source object for the event being managed.
 /// </summary>
 /// <param name="source">The source object to add listener to.</param>
 /// <param name="listener">The listener to add.</param>
 private static void AddListener(TSource source, IEventListener <T> listener)
 {
     WeakEvent <TSource, T, TEvent> .ProtectedAddListener(source, listener);
 }
예제 #2
0
 /// <summary>
 /// Adds the specified listener for the event being managed.
 /// </summary>
 /// <param name="listener">The listener to add.</param>
 private static void AddListener(IEventListener <T> listener)
 {
     WeakEvent <T, TEvent> .ProtectedAddListener(listener);
 }