protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); if (!Focused) { base.Focus(); } if (fNodesDragging) { fDragged = fSys.nearest(e.Location.X, e.Location.Y); if (fDragged != null) { fDragged.Fixed = true; } } }
protected override void OnMouseDown(MouseEventArgs e) { if (!HasFocus) { base.Focus(); } Point mpt = new Point(e.Location); if (fNodesDragging) { fDragged = fSys.nearest(mpt.X, mpt.Y); if (fDragged != null) { fDragged.Fixed = true; } } e.Handled = true; base.OnMouseDown(e); }