SampleApp.MainForm.heightUpDown_ValueChanged C# (CSharp) Method

heightUpDown_ValueChanged() private method

private heightUpDown_ValueChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void heightUpDown_ValueChanged( object sender, EventArgs e )
        {
            if ( videoSource != null )
            {
                try
                {
                    videoSource.SetParam( CameraParameter.Height, (int) heightUpDown.Value );

                    offsetYUpDown.Maximum = heightUpDown.Maximum - heightUpDown.Value;
                    offsetYUpDown.Value = 0;
                }
                catch
                {
                }
            }
        }
MainForm