public DoubleClick ( Point pt ) : void | ||
pt | Point | Control coordinates point. |
return | void |
public virtual void DoubleClick(Point pt)
{
// If there is an active element
if (ActiveView != null)
ActiveView.DoubleClick(pt);
// Generate event to indicate the view manager has processed a mouse up
if (DoubleClickProcessed != null)
DoubleClickProcessed(this, pt);
}
/// <summary> /// Raises the DoubleClick event. /// </summary> /// <param name="e">A KeyEventArgs that contains the event data.</param> protected override void OnDoubleClick(EventArgs e) { // Cannot process a message for a disposed control if (!IsDisposed) { // Do we have a manager for processing mouse messages? ViewManager?.DoubleClick(PointToClient(MousePosition)); } // Let base class fire events base.OnDoubleClick(e); }