public Dashboard() { InitializeComponent(); m_AppConfig = new ApplicationConfig(); m_KnownPaths = new KnownPaths(); CreateFastCompilePreset(); CreateDefaultCompilePreset(); CreateFinalCompilePreset(); SetStatusBarText(m_DefaultStatusBarText); TryLoadConfig(); ComputePaths(); }
public static string GetCommandString(List <CompileToolArgument> args, KnownPaths knownPaths) { string cmdString = ""; foreach (CompileToolArgument arg in args) { if (arg is StringCompileToolArgument) { cmdString += (cmdString.Length > 0 ? " " : "") + ((StringCompileToolArgument)arg).Value; } else if (arg is KnownPathCompileToolArgument) { cmdString += (cmdString.Length > 0 ? " " : "") + ((KnownPathCompileToolArgument)arg).GetPathString(knownPaths); } } return(cmdString); }
public string GetPathString(KnownPaths knownPaths) { return($"\"{knownPaths.GetPathString(Path)}\""); }