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();
}