EventAI_Creator.EventControl.Action1Param1Combobox_SelectedIndexChanged C# (CSharp) Method

Action1Param1Combobox_SelectedIndexChanged() private method

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

            if (box == this.Action1Param1Combobox)
                Action1Param1Tbox.Text = Action1Param1Combobox.SelectedIndex.ToString();
            else if (box == this.Action2Param1Combobox)
                Action2Param1Tbox.Text = Action2Param1Combobox.SelectedIndex.ToString();
            else if (box == this.Action3Param1Combobox)
                Action3Param1Tbox.Text = Action3Param1Combobox.SelectedIndex.ToString();

            if (!locked)
                GetEventData();
        }