EventAI_Creator.EventControl.Action1Param3Combobox_SelectedIndexChanged C# (CSharp) Method

Action1Param3Combobox_SelectedIndexChanged() private method

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

            if (box == this.Action1Param3Combobox)
                Action1Param3Tbox.Text = Action1Param3Combobox.SelectedIndex.ToString();
            else if (box == this.Action2Param3Combobox)
                Action2Param3Tbox.Text = Action2Param3Combobox.SelectedIndex.ToString();
            else if (box == this.Action3Param3Combobox)
                Action3Param3Tbox.Text = Action3Param3Combobox.SelectedIndex.ToString();

            if (!locked)
                GetEventData();
        }