public void OnButtonMove(BaseTaskbarButton button, int x, int y) { _draggedButton = button; Point clientCoords = this.PointToClient(new Point(x, y)); x = clientCoords.X; y = clientCoords.Y; _draggedPoint = clientCoords; bool moved = _groups.MoveButtonToPoint(clientCoords, button); if (moved) { ReorderPinnedButtons(); } }
public void OnButtonRelease(BaseTaskbarButton button) { _draggedButton = null; }