Пример #1
0
        private TreeViewModel CreateBuildsTree()
        {
            ClassStatus status = ClassStatus.GetInstance (Server.MapPath ("~/Content/classstatus.xml"));

            TreeViewModel tv = new TreeViewModel ();

            foreach (var profile in status.Profiles) {
                TreeViewNode node = new TreeViewNode (profile.Name, string.Format ("~/status/{0}/{1}", profile.Profile, profile.Reference), string.Format ("~/Media/{0}", profile.Icon));
                node.Expanded = false;
                node.Tag = string.Format ("{0}|{1}", profile.Profile, profile.Reference);

                foreach (string assem in profile.Assemblies)
                    node.Nodes.Add (CreateNode (assem, profile.Profile, profile.Reference));

                tv.Nodes.Add (node);
            }

            return tv;
        }
Пример #2
0
        private TreeViewModel CreateBuildsTree()
        {
            TreeViewModel tv = new TreeViewModel ();

            tv.Nodes.Add (new TreeViewNode ("Mono", "~/builds/mono", "~/Media/mono.png"));
            tv.Nodes.Add (new TreeViewNode ("Mono - Extended", "~/builds/monoextended", "~/Media/mono.png"));
            tv.Nodes.Add (new TreeViewNode ("MonoDevelop", "~/builds/monodevelop", "~/Media/monodevelop.png"));
            tv.Nodes.Add (new TreeViewNode ("Other Projects", "~/builds/other", "~/Media/bricks.png"));

            return tv;
        }