internal void Copy(ScrolleeEventArgs Sizes) { Orientation = Sizes.Orientation; StartValue = Sizes.StartValue; CursorValue = Sizes.CursorValue; Minimum = Sizes.Minimum; Maximum = Sizes.Maximum; SmallChange = Sizes.SmallChange; LargeChange = Sizes.LargeChange; ViewportSize = Sizes.ViewportSize; ViewableSpan = Sizes.ViewableSpan; }
private void SetScrollBarValues(ScrolleeEventArgs sea) { ScrollBar scrollBar = ScrollBars[(int)sea.Orientation]; if (scrollBar != null) { ScrollBarsEnabled = false; scrollBar.Value = sea.StartValue; scrollBar.Minimum = sea.Minimum; scrollBar.Maximum = sea.Maximum; scrollBar.SmallChange = sea.SmallChange; scrollBar.LargeChange = sea.LargeChange; scrollBar.ViewportSize = sea.ViewportSize; ScrollBarsEnabled = true; } }