// command
private void comboboxCommand_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.Tag == null & listviewControls.SelectedIndices.Count == 1)
{
int i = listviewControls.SelectedIndices[0];
int j = comboboxCommand.SelectedIndex;
if (j >= 0)
{
Interface.CurrentControls[i].Command = Interface.CommandInfos[j].Command;
Interface.CommandInfo Info;
Interface.TryGetCommandInfo(Interface.CommandInfos[j].Command, out Info);
Interface.CurrentControls[i].InheritedType = Info.Type;
UpdateControlListElement(listviewControls.Items[i], i, true);
}
}
}