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