Пример #1
0
 public static JointConfiguration ShowConfigurationForm(IWin32Window owner, JointConfiguration currentConfig)
 {
     ConfigurationForm configForm = new ConfigurationForm(currentConfig);
       configForm.ShowDialog(owner);
       JointConfiguration result = new JointConfiguration(configForm.m_engineConfiguration, configForm.m_clockConfiguration);
       configForm.Dispose();
       return result;
 }
Пример #2
0
        private void configurationMenu_Click(object sender, EventArgs e)
        {
            JointConfiguration jointConfig = new JointConfiguration(m_chessFacade.EngineConfiguration, m_chessFacade.ClockConfiguration);

            jointConfig = ConfigurationForm.ShowConfigurationForm(this, jointConfig);
            m_chessFacade.EngineConfiguration = jointConfig.EngineConfiguration;
            m_chessFacade.ClockConfiguration  = jointConfig.ClockConfiguration;
        }
Пример #3
0
        public static JointConfiguration ShowConfigurationForm(IWin32Window owner, JointConfiguration currentConfig)
        {
            ConfigurationForm configForm = new ConfigurationForm(currentConfig);

            configForm.ShowDialog(owner);
            JointConfiguration result = new JointConfiguration(configForm.m_engineConfiguration, configForm.m_clockConfiguration);

            configForm.Dispose();
            return(result);
        }