void DesignerPanel_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { IUISelectionService selectionServ = this.DesignedControl.Site.GetService(typeof(IUISelectionService)) as IUISelectionService; if (selectionServ == null) { return; } selectionServ.SetCursor(e.X, e.Y); if (_mouseDown) { if (_firstMove) { selectionServ.MouseDragBegin(this.DesignerPanel, e.X, e.Y); _firstMove = false; } else { selectionServ.MouseDragMove(e.X, e.Y); } } else if (selectionServ.SelectionInProgress) { selectionServ.MouseDragMove(e.X, e.Y); } }
internal override void OnMouseMove(int x, int y) { IUISelectionService uiSelection = this.GetService(typeof(IUISelectionService)) as IUISelectionService; if (uiSelection != null) { uiSelection.SetCursor(x, y); } base.OnMouseMove(x, y); }