Esempio n. 1
0
        static Workspace()
        {
            Solution = new Solution();

            AppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\OpenIDE\";
            SolutionPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
        }
Esempio n. 2
0
        static Workspace()
        {
            Solution = new Solution();

            AppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\OpenIDE\";
            SolutionPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

            Cache = MemoryCache.Default;
            OpenedDocuments = new Dictionary<string, DocumentWindow>();
        }
Esempio n. 3
0
        public static RadTreeNode Build(Solution sol, RadContextMenu radContextMenu1)
        {
            var ret = new RadTreeNode($"Solution '{sol.Name}'", true);
            ret.Tag = sol;

            foreach (var p in sol.Projects)
            {
                var pn = Build(p, radContextMenu1);

                ret.Nodes.Add(pn);
            }

            return ret;
        }
Esempio n. 4
0
        public static RadTreeNode Build(Solution sol)
        {
            var ret = new RadTreeNode($"Solution '{sol.Name}'", true);
            ret.Tag = sol;

            foreach (var p in sol.Projects)
            {
                var pn = new RadTreeNode($"Project '{p.Name}'", true);
                pn.Tag = p;

                foreach (var f in p.Files)
                {
                    var n = new RadTreeNode(f.Src);
                    n.Tag = f;

                    pn.Nodes.Add(n);
                }

                ret.Nodes.Add(pn);
            }

            return ret;
        }