public static string GetFunctionsFilePath(EScriptedFunction Function)
        {
            foreach (KeyValuePair <EScriptedFunction, string> pair in ScriptPathsForFunctions)
            {
                if (pair.Key == Function)
                {
                    return(pair.Value);
                }
            }

            throw new ArgumentException("There is no file associated with function " + Enum.GetName(typeof(EScriptedFunction), Function));
        }
 public static string GetFilePathForOutput(EScriptedFunction Function, Device device)
 {
     return(scriptFilesDirectory + device.serial + "_" + Enum.GetName(typeof(EScriptedFunction), Function) + ".txt");
 }