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); }
public void SetShowAllViews(bool value) { ShellScript.SetDefaultBooleanKey(CurrentDomain, ShowAllViewsKey, value); showAllViews = value; }
public void SetVisualizeMutuallyExclusiveConstraints(bool value) { ShellScript.SetDefaultBooleanKey(CurrentDomain, VisualizeMutuallyExclusiveConstraintsKey, value); visualizeMutuallyExclusiveConstraints = value; }
void RefreshStates() { showAllViews = ShellScript.GetDefaultBooleanKey(CurrentDomain, ShowAllViewsKey); visualizeMutuallyExclusiveConstraints = ShellScript.GetDefaultBooleanKey(CurrentDomain, VisualizeMutuallyExclusiveConstraintsKey); }