public static void StopScript(ScriptInfo scriptInfo) { if (IDE.StopScriptRequested != null) { IDE.StopScriptRequested(scriptInfo, EventArgs.Empty); } }
public static void StopSolution() { if (IDE.StopSolutionRequested != null) { IDE.StopSolutionRequested(null, EventArgs.Empty); } }
///<summary> /// Stops script using specified ScriptInfo ///</summary> public static void StopScript(ScriptInfo scriptInfo) { if (IDE.StopScriptRequested == null) { return; } IDE.StopScriptRequested((object)scriptInfo, EventArgs.Empty); }
///<summary> /// Stops current solution ///</summary> public static void StopSolution() { if (IDE.StopSolutionRequested == null) { return; } IDE.StopSolutionRequested((object)null, EventArgs.Empty); }
///<summary> /// Opens solution by name ///</summary> public static bool OpenSolution(string name) { FileInfo fileInfo = new FileInfo(IDE.SolutionsDirectory.FullName + "\\" + name + "\\" + name + ".oqs"); if (!fileInfo.Exists) { return(false); } if (IDE.OpenSolutionRequested != null) { IDE.OpenSolutionRequested((object)fileInfo, EventArgs.Empty); } return(true); }
public static bool OpenSolution(string name) { FileInfo fileInfo = new FileInfo(string.Concat(new string[] { IDE.SolutionsDirectory.FullName, "\\", name, "\\", name, ".oqs" })); if (fileInfo.Exists) { if (IDE.OpenSolutionRequested != null) { IDE.OpenSolutionRequested(fileInfo, EventArgs.Empty); } return(true); } return(false); }