Axiom.Demos.ConfigDialog.cboOptionValues_SelectedIndexChanged C# (CSharp) Method

cboOptionValues_SelectedIndexChanged() private method

private cboOptionValues_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
		private void cboOptionValues_SelectedIndexChanged( object sender, EventArgs e )
		{
			ConfigOption opt = (ConfigOption)lstOptions.SelectedItem;
			string value = (string)cboOptionValues.SelectedItem;

			opt.Value = value;

			this.lstOptions.SelectedIndexChanged -= new System.EventHandler( this.lstOptions_SelectedIndexChanged );
			for ( int index = 0; index < this.lstOptions.Items.Count; index++ )
			{
				lstOptions.Items[ index ] = lstOptions.Items[ index ];
			}
			this.lstOptions.SelectedIndexChanged += new System.EventHandler( this.lstOptions_SelectedIndexChanged );

		}