Exemplo n.º 1
0
        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);
        }
Exemplo n.º 3
0
 public string GetPathString(KnownPaths knownPaths)
 {
     return($"\"{knownPaths.GetPathString(Path)}\"");
 }