Exemple #1
0
 public void RemoveActive(RoutedEventConnection rec)
 {
     foreach (RoutedEventConnection rec2 in ActiveEvents)
     {
         if (rec2.RoutedEvent == rec.RoutedEvent && rec.RoutedEventHandler.Target == rec2.RoutedEventHandler.Target)
         {
             this.RemoveHandler(rec2.RoutedEvent, rec2.RoutedEventHandler);
             ActiveEvents.Remove(rec2);
             return;
         }
     }
 }
 /// <summary>
 /// Removes the specified channel.
 /// </summary>
 /// <param name="channel">The channel.</param>
 public static void Remove(ChannelInstance channel)
 {
     _Channels.Remove(channel);
 }