EventAI_Creator.EventControl.Action1Param2Combobox_SelectedIndexChanged C# (CSharp) Method

Action1Param2Combobox_SelectedIndexChanged() private method

private Action1Param2Combobox_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void Action1Param2Combobox_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox box = (sender as ComboBox);

            if (box == this.Action1Param2Combobox)
                Action1Param2Tbox.Text = Action1Param2Combobox.SelectedIndex.ToString();
            else if (box == this.Action2Param2Combobox)
                Action2Param2Tbox.Text = Action2Param2Combobox.SelectedIndex.ToString();
            else if (box == this.Action3Param2Combobox)
                Action3Param2Tbox.Text = Action3Param2Combobox.SelectedIndex.ToString();

            if (!locked)
                GetEventData();
        }