Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the RoutedEventCondtion class.
 /// </summary>
 /// <param name="routedEvent"></param>
 /// <param name="sender"></param>
 /// <param name="senderType"></param>
 /// <param name="direction"></param>
 public RoutedEventCondition(RoutedEvent routedEvent, string sender, EventBehaviorSenderType senderType, RoutingDirection direction)
 {
     this.routedEvent = routedEvent;
     this.sender      = sender;
     this.senderType  = senderType;
     this.direction   = direction;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the RoutedEventCondition class from
 /// routed event, sender, sender's type, and unary operator used in the condition.
 /// </summary>
 /// <param name="routedEvent"></param>
 /// <param name="sender"></param>
 /// <param name="senderType"></param>
 /// <param name="direction"></param>
 /// <param name="unaryOperator"></param>
 public RoutedEventCondition(RoutedEvent routedEvent, string sender, EventBehaviorSenderType senderType, RoutingDirection direction, UnaryOperator unaryOperator)
 {
     this.routedEvent   = routedEvent;
     this.sender        = sender;
     this.senderType    = senderType;
     this.direction     = direction;
     this.unaryOperator = unaryOperator;
 }