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); } }
//------------------------------------------------------ //------------------------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); } }
public void Move(Point amountToMove) { _increaseSize.Move(amountToMove); _decreaseSize.Move(amountToMove); _sizeLabel.Move(amountToMove); }