ScreenToGif.Windows.Options.GridSizeTextBox_MouseWheel C# (CSharp) 메소드

GridSizeTextBox_MouseWheel() 개인적인 메소드

private GridSizeTextBox_MouseWheel ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void
sender object
e System.Windows.Input.MouseWheelEventArgs
리턴 void
        private void GridSizeTextBox_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;

            if (textBox.Tag.Equals("Editor"))
                AdjustToSize();
            else
                AdjustToSizeBoard();
        }