/// <summary> /// Remove a command and ajust the command counter. /// </summary> /// <param name="removeCommand"> /// A command to remove. /// </param> private void RemoveCommand(InputCommand removeCommand) { InputCommandsCollection.Remove(removeCommand); _commandCounter = InputCommandsCollection.Count - 1; }
/// <summary> /// Add a new command and ajust the command counter. /// </summary> /// <param name="newCommand"> /// A new command to add. /// </param> private void AddCommand(InputCommand newCommand) { InputCommandsCollection.Add(newCommand); _commandCounter = InputCommandsCollection.Count - 1; }