コード例 #1
0
ファイル: MainForm.cs プロジェクト: old8xp/AForge.NET
        // On "More settings" button click
        private void moreSettingsButton_Click(object sender, System.EventArgs e)
        {
            ExSettingsDialog settingsDlg = new ExSettingsDialog( );

            // init the dialog
            settingsDlg.MaxInitialTreeLevel = GPTreeChromosome.MaxInitialLevel;
            settingsDlg.MaxTreeLevel        = GPTreeChromosome.MaxLevel;
            settingsDlg.HeadLength          = headLength;

            // show the dialog
            if (settingsDlg.ShowDialog( ) == DialogResult.OK)
            {
                GPTreeChromosome.MaxInitialLevel = settingsDlg.MaxInitialTreeLevel;
                GPTreeChromosome.MaxLevel        = settingsDlg.MaxTreeLevel;
                headLength = settingsDlg.HeadLength;
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: centrolutions/AForge.NET
		// On "More settings" button click
		private void moreSettingsButton_Click( object sender, System.EventArgs e )
		{
			ExSettingsDialog settingsDlg = new ExSettingsDialog( );

			// init the dialog
			settingsDlg.MaxInitialTreeLevel	= GPTreeChromosome.MaxInitialLevel;
			settingsDlg.MaxTreeLevel		= GPTreeChromosome.MaxLevel;
			settingsDlg.HeadLength			= headLength;

			// show the dialog
			if ( settingsDlg.ShowDialog( ) == DialogResult.OK )
			{
				GPTreeChromosome.MaxInitialLevel = settingsDlg.MaxInitialTreeLevel;
				GPTreeChromosome.MaxLevel = settingsDlg.MaxTreeLevel;
				headLength = settingsDlg.HeadLength;
			}
		}