Beispiel #1
0
 void LoadEnvVariables()
 {
     EnvironmentVariables.Clear();
     foreach (var pair in CurrentProfile.EnvironmentVariables)
     {
         EnvironmentVariables [pair.Key] = pair.Value;
     }
 }
Beispiel #2
0
        public void SetEnvironmentVariables(string env)
        {
            EnvironmentVariables.Clear();

            if (string.IsNullOrEmpty(env))
            {
                return;
            }

            string[] pairs = env.Split(';');

            foreach (var p in pairs)
            {
                string[] v = p.Split('=');

                EnvironmentVariables[v[0]] = v[1];
            }
        }