示例#1
0
        public Tool GetTool(string toolName)
        {
            Tool retVal    = null;
            var  foundTool = ToolPath.FirstOrDefault((item) => item.Name == toolName);

            if (foundTool != null)
            {
                retVal = foundTool;
            }
            return(retVal);
        }
示例#2
0
        public string GetToolPath(string toolName)
        {
            string retVal    = "";
            var    foundTool = ToolPath.FirstOrDefault((item) => item.Name == toolName);

            if (foundTool != null)
            {
                retVal = foundTool.Path;
            }
            return(retVal);
        }
示例#3
0
        public bool IsToolAvailable(string toolName)
        {
            var foundTool = ToolPath.FirstOrDefault((item) => item.Name == toolName);

            return(foundTool != null);
        }