private string think(Tool needToMadeTool) { foreach (Tool tool in AllTools) { if ((tool.getContent(false) == needToMadeTool.getContent(true)) && (tool.getPath(true) == currentPathWindowExplorer) && (tool.getContent(true) == currentContentWindowExplorer)) { return (tool.getCommandsInKeys() + needToMadeTool.getCommandsInKeys()); } } return null; }
private void additionalTools(Tool first, Tool second) { Tool newTool = new Tool(second.getRecognedSoundCommand(), first.getCommandsInKeys() + second.getCommandsInKeys(), first.getPath(true), first.getContent(true), second.getContent(false), second.getPath(false)); }