private void lstOptions_SelectedIndexChanged( object sender, EventArgs e )
{
this.cboOptionValues.SelectedIndexChanged -= new System.EventHandler( this.cboOptionValues_SelectedIndexChanged );
Axiom.Graphics.RenderSystem system = (Axiom.Graphics.RenderSystem)cboRenderSystems.SelectedItem;
ConfigOption opt = (ConfigOption)lstOptions.SelectedItem;
cboOptionValues.Items.Clear();
foreach ( string value in opt.PossibleValues.Values )
cboOptionValues.Items.Add( value );
if ( cboOptionValues.Items.Count == 0 )
{
cboOptionValues.Items.Add( opt.Value );
}
cboOptionValues.SelectedIndex = cboOptionValues.Items.IndexOf( opt.Value );
this.lblOption.Text = opt.Name;
this.lblOption.Visible = true;
this.cboOptionValues.Visible = true;
this.cboOptionValues.Enabled = ( !opt.Immutable );
this.cboOptionValues.SelectedIndexChanged += new System.EventHandler( this.cboOptionValues_SelectedIndexChanged );
}