Esempio n. 1
0
 public static void StopScript(ScriptInfo scriptInfo)
 {
     if (IDE.StopScriptRequested != null)
     {
         IDE.StopScriptRequested(scriptInfo, EventArgs.Empty);
     }
 }
Esempio n. 2
0
 public static void StopSolution()
 {
     if (IDE.StopSolutionRequested != null)
     {
         IDE.StopSolutionRequested(null, EventArgs.Empty);
     }
 }
Esempio n. 3
0
 ///<summary>
 ///  Stops script using specified ScriptInfo
 ///</summary>
 public static void StopScript(ScriptInfo scriptInfo)
 {
     if (IDE.StopScriptRequested == null)
     {
         return;
     }
     IDE.StopScriptRequested((object)scriptInfo, EventArgs.Empty);
 }
Esempio n. 4
0
 ///<summary>
 ///  Stops current solution
 ///</summary>
 public static void StopSolution()
 {
     if (IDE.StopSolutionRequested == null)
     {
         return;
     }
     IDE.StopSolutionRequested((object)null, EventArgs.Empty);
 }
Esempio n. 5
0
        ///<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);
        }
Esempio n. 6
0
        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);
        }