Esempio n. 1
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. 2
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);
        }