ScreenToGif.Pages.ValuePicker.ValuePicker C# (CSharp) Method

ValuePicker() public method

ValuePicker constructor.
public ValuePicker ( int max, int min, string title, string unit = "", int startValue = null ) : System
max int The maximum value.
min int The minimum value.
title string The title of the ValuePicker window.
unit string The unit of the value.
startValue int The start value.
return System
        public ValuePicker(int max, int min, string title, string unit = "", int? startValue = null)
        {
            InitializeComponent();

            this.Text = title;
            trackBar.Maximum = max;
            trackBar.Minimum = min;

            if (startValue == null)
            {
                trackBar.Value = trackBar.Minimum;
            }
            else
            {
                trackBar.Value = startValue.Value;
            }

            lblValue.Text = trackBar.Value + unit;
        }

Same methods

ValuePicker::ValuePicker ( string title, int max, int min, string unit = "", int startValue = null ) : System