Ejemplo n.º 1
0
 public Properties(String[] args)
 {
     MessageHandler tmpMh = new MessageHandler(false);
     foreach (String arg in args)
         if (arg.StartsWith("-h", StringComparison.InvariantCultureIgnoreCase) || arg.StartsWith("/h", StringComparison.InvariantCultureIgnoreCase) || arg.StartsWith("-?") || arg.StartsWith("/?"))
         {
             tmpMh.printUsage();
             tmpMh.exitSuccess("");
         }
     //get full path to execution directory where config file lives
     String pathToExe = getExePath();
     String configFile = pathToExe + Path.DirectorySeparatorChar + "GenVSTGTs.config";
     if (!File.Exists(configFile))
         tmpMh.exitError("\nGenVSTGTs exited with errors: 'GenVSTGTs.config' Congifuration File not found in path: '" + pathToExe + "'");
     else
         getProperties(configFile); //gets properties and puts them into global properties Dictionary variable
     processCmdArgs(args);
 }