public void HandleChangeCommand(string partialCommandName) { if (string.IsNullOrEmpty(partialCommandName)) { AddData(CoordinatateParserNames.Stop); return; } var listCommands = GetCommandList(partialCommandName); if (listCommands.Count == 0) { return; } var commandName = listCommands[0]; var currentAction = ListCommands.GetAction(ListCommands.NameMapping[commandName]); if (currentAction != null) { ActionsGraph.SwitchAction(currentAction.Name); } else { AddData(CoordinatateParserNames.Stop); } }