static string ExecuteCommand(this string sender, string arguments = "", bool ignoreError = true, string workingDirectory = null, Dictionary <string, string> environmentVariables = null, bool returnsPid = false)
        {
            string output, error;

            ShellScript.ExecuteCommand(sender, out output, out error, arguments, workingDirectory, environmentVariables);
            if (!ignoreError && !string.IsNullOrEmpty(error))
            {
                throw new ArgumentException(error);
            }
            return(output);
        }
Example #2
0
 public void SetShowAllViews(bool value)
 {
     ShellScript.SetDefaultBooleanKey(CurrentDomain, ShowAllViewsKey, value);
     showAllViews = value;
 }
Example #3
0
 public void SetVisualizeMutuallyExclusiveConstraints(bool value)
 {
     ShellScript.SetDefaultBooleanKey(CurrentDomain, VisualizeMutuallyExclusiveConstraintsKey, value);
     visualizeMutuallyExclusiveConstraints = value;
 }
Example #4
0
 void RefreshStates()
 {
     showAllViews = ShellScript.GetDefaultBooleanKey(CurrentDomain, ShowAllViewsKey);
     visualizeMutuallyExclusiveConstraints = ShellScript.GetDefaultBooleanKey(CurrentDomain, VisualizeMutuallyExclusiveConstraintsKey);
 }