Exemple #1
0
        public void Move(Point amountToMove)
        {
            scrollButton.Move(amountToMove);
            lowerButton.Move(amountToMove);
            upperButton.Move(amountToMove);
            ScrollBounds = new Rectangle(ScrollBounds.X + amountToMove.X, ScrollBounds.Y + amountToMove.Y, ScrollBounds.Width, ScrollBounds.Height);

            foreach (Label l in ScrollerLabels)
            {
                l.Move(amountToMove);
            }
        }
Exemple #2
0
        //------------------------------------------------------
        //------------------------Methods-----------------------
        //------------------------------------------------------

        public void Move(Point amountToMove)
        {
            Bounds = new Rectangle(Bounds.X + amountToMove.X, Bounds.Y + amountToMove.Y, Bounds.Width, Bounds.Height);

            _dropDownButton.Move(amountToMove);

            for (int i = 0; i < itemsBounds.Count; i++)
            {
                itemsBounds[i] = new Rectangle(itemsBounds[i].X + amountToMove.X, itemsBounds[i].Y + amountToMove.Y, itemsBounds[i].Width, itemsBounds[i].Height);
            }

            if (_scroller != null)
            {
                _scroller.Move(amountToMove);
            }
        }
Exemple #3
0
 public void Move(Point amountToMove)
 {
     _increaseSize.Move(amountToMove);
     _decreaseSize.Move(amountToMove);
     _sizeLabel.Move(amountToMove);
 }