예제 #1
0
        // Show configuration options
        private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OptionsForm optionsForm = new OptionsForm( );

            optionsForm.AutoDetectFocalLength = autoDetectFocalLength;
            optionsForm.CameraFocalLength     = imageProcessor.CameraFocalLength;
            optionsForm.GlyphSize             = imageProcessor.GlyphSize;

            if (optionsForm.ShowDialog( ) == DialogResult.OK)
            {
                imageProcessor.GlyphSize = optionsForm.GlyphSize;
                autoDetectFocalLength    = optionsForm.AutoDetectFocalLength;

                if (!autoDetectFocalLength)
                {
                    imageProcessor.CameraFocalLength = optionsForm.CameraFocalLength;
                }
            }
        }
예제 #2
0
파일: MainForm.cs 프로젝트: Spawek/valeo
        // Show configuration options
        private void optionsToolStripMenuItem_Click( object sender, EventArgs e )
        {
            OptionsForm optionsForm = new OptionsForm( );

            optionsForm.AutoDetectFocalLength = autoDetectFocalLength;
            optionsForm.CameraFocalLength = imageProcessor.CameraFocalLength;
            optionsForm.GlyphSize = imageProcessor.GlyphSize;

            if ( optionsForm.ShowDialog( ) == DialogResult.OK )
            {
                imageProcessor.GlyphSize = optionsForm.GlyphSize;
                autoDetectFocalLength = optionsForm.AutoDetectFocalLength;

                if ( !autoDetectFocalLength )
                {
                    imageProcessor.CameraFocalLength = optionsForm.CameraFocalLength;
                }
            }
        }