AGS.Editor.CustomResolutionDialog.udWidthHeight_Validating C# (CSharp) Method

udWidthHeight_Validating() private method

private udWidthHeight_Validating ( object sender, CancelEventArgs e ) : void
sender object
e CancelEventArgs
return void
        private void udWidthHeight_Validating(object sender, CancelEventArgs e)
        {
            NumericUpDown num = (NumericUpDown)sender;
            num.Value = Math.Max(1, num.Value);
        }