/// <summary> /// Raises the MouseUp event. /// </summary> /// <param name="e">A MouseEventArgs that contains the event data.</param> protected override void OnMouseUp(MouseEventArgs e) { // Cannot process a message for a disposed control if (!IsDisposed) { // Do we have a manager for processing mouse messages? if (ViewManager != null) { ViewManager.MouseUp(e, new Point(e.X, e.Y)); } } // Do not call base class! Prevent capture of the mouse }
/// <summary> /// Raises the MouseUp event. /// </summary> /// <param name="e">A MouseEventArgs that contains the event data.</param> protected override void OnMouseUp(MouseEventArgs e) { // Cannot process a message for a disposed control if (!IsDisposed && !Disposing) { // Do we have a manager for processing mouse messages? if (ViewManager != null) { ViewManager.MouseUp(e, new Point(e.X, e.Y)); } } // Let base class fire events base.OnMouseUp(e); }