SampleApp.MainForm.widthUpDown_ValueChanged C# (CSharp) Method

widthUpDown_ValueChanged() private method

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

                    offsetXUpDown.Maximum = widthUpDown.Maximum - widthUpDown.Value;
                    offsetXUpDown.Value = 0;
                }
                catch
                {
                }
            }
        }
MainForm