ScreenToGif.Windows.Board.SizeBox_MouseWheel C# (CSharp) Method

SizeBox_MouseWheel() private method

private SizeBox_MouseWheel ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void
sender object
e System.Windows.Input.MouseWheelEventArgs
return void
        private void SizeBox_MouseWheel(object sender, MouseWheelEventArgs e)
        {
            var textBox = sender as NumericTextBox;

            if (textBox == null) return;

            textBox.Value = e.Delta > 0 ? textBox.Value + 1 : textBox.Value - 1;

            AdjustToSize();
        }