예제 #1
0
 public static void StopScript(ScriptInfo scriptInfo)
 {
     if (IDE.StopScriptRequested != null)
     {
         IDE.StopScriptRequested(scriptInfo, EventArgs.Empty);
     }
 }
예제 #2
0
 public static void StopSolution()
 {
     if (IDE.StopSolutionRequested != null)
     {
         IDE.StopSolutionRequested(null, EventArgs.Empty);
     }
 }
예제 #3
0
파일: IDE.cs 프로젝트: zhuzhenping/FreeOQ
 ///<summary>
 ///  Stops script using specified ScriptInfo
 ///</summary>
 public static void StopScript(ScriptInfo scriptInfo)
 {
     if (IDE.StopScriptRequested == null)
     {
         return;
     }
     IDE.StopScriptRequested((object)scriptInfo, EventArgs.Empty);
 }
예제 #4
0
파일: IDE.cs 프로젝트: zhuzhenping/FreeOQ
 ///<summary>
 ///  Stops current solution
 ///</summary>
 public static void StopSolution()
 {
     if (IDE.StopSolutionRequested == null)
     {
         return;
     }
     IDE.StopSolutionRequested((object)null, EventArgs.Empty);
 }
예제 #5
0
파일: IDE.cs 프로젝트: zhuzhenping/FreeOQ
        ///<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);
        }
예제 #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);
        }