예제 #1
0
        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();
            }
        }
예제 #2
0
 public void OnButtonRelease(BaseTaskbarButton button)
 {
     _draggedButton = null;
 }