Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new <see cref="ControlMoveMouseGesture"/>
 /// with a target <see cref="Form"/>, a target
 /// <see cref="Control"/> and the buttons pushed during the move
 /// </summary>
 /// <param name="form">
 /// Target form</param>
 /// <param name="targetControl">
 /// Target control
 /// </param>
 /// <param name="buttons">
 /// value representing the <see cref="MouseButtons"/>
 /// involved in the gesture
 /// </param>
 public ControlMoveMouseGesture(Form form, MouseButtons buttons, Control targetControl)
     : base(form, buttons)
 {
     if (targetControl == null)
     {
         throw new ArgumentNullException("targetControl");
     }
     this.controlKey = new ControlKey(targetControl);
 }
 /// <summary>
 /// Initializes a new <see cref="ControlMoveMouseGesture"/>
 /// with a target <see cref="Form"/>, a target 
 /// <see cref="Control"/> and the buttons pushed during the move
 /// </summary>
 /// <param name="form">
 /// Target form</param>
 /// <param name="targetControl">
 /// Target control
 /// </param>
 /// <param name="buttons">
 /// value representing the <see cref="MouseButtons"/>
 /// involved in the gesture
 /// </param>
 public ControlMoveMouseGesture(Form form, MouseButtons buttons,Control targetControl)
     : base(form,buttons)
 {
     if (targetControl==null)
         throw new ArgumentNullException("targetControl");
     this.controlKey = new ControlKey(targetControl);
 }