Game.PostEffectsWindow.listBoxCheckBox_Click C# (CSharp) Méthode

listBoxCheckBox_Click() static private méthode

static private listBoxCheckBox_Click ( ECheckBox sender ) : void
sender ECheckBox
Résultat void
        void listBoxCheckBox_Click( ECheckBox sender )
        {
            //set listBox current item
            for( int n = 0; n < listBox.Items.Count; n++ )
            {
                EButton itemButton = listBox.ItemButtons[ n ];
                if( itemButton.Controls[ "CheckBox" ] == sender )
                    listBox.SelectedIndex = n;
            }

            checkBoxEnabled.Checked = sender.Checked;
            checkBoxEnabled.Enable = ( sender.Parent.Text != "HDR" );

            UpdateCurrentPostEffect();
        }