public void ExecuteCommand(int commandId) { var command = addedCommands.Find(_ => _.CommandID.ID == commandId); if (command != null) { command.Invoke(); } }