/// <summary> /// Checks whether MouseEvent satisfies all of the ManipulatorActivationFilter requirements. /// </summary> /// <param name="e">The MouseEvent to validate.</param> /// <returns>True if the event satisfies the requirements. False otherwise.</returns> protected bool CanStartManipulation(IMouseEvent e) { foreach (var activator in activators) { if (activator.Matches(e)) { m_currentActivator = activator; return(true); } } return(false); }
protected bool CanStartManipulation(IMouseEvent e) { bool result; foreach (ManipulatorActivationFilter current in this.activators) { bool flag = current.Matches(e); if (flag) { this.m_currentActivator = current; result = true; return(result); } } result = false; return(result); }