Beispiel #1
0
        public IEnumerable<Link> PopulateSideMenu()
        {
            List<Link> links = new List<Link>();

            Link link1 = new Link() {
                Name = "Project 1",
                Url = "http://google.dk"
            };

            Link link2 = new Link()
            {
                Name = "Project 2",
                Url = "http://google.dk"
            };

            Link link3 = new Link()
            {
                Name = "Project 3",
                Url = "http://google.dk"
            };

            links.Add(link1);
            links.Add(link2);
            links.Add(link3);

            return links;
        }
Beispiel #2
0
        public IEnumerable<Link> PopulateMainMenu()
        {
            List<Link> links = new List<Link>();

            Link link1 = new Link()
            {
                Name = "Kontrolpanel",
                Url = "/"
            };

            Link link2 = new Link()
            {
                Name = "Min side",
                Url = "http://localhost:55035/profile/mypage"
            };

            Link link3 = new Link()
            {
                Name = "Logud",
                Url = "http://google.dk"
            };

            links.Add(link1);
            links.Add(link2);
            links.Add(link3);

            return links;
        }
Beispiel #3
0
        public IEnumerable<Link> PopulateProjects(bool archived)
        {
            var projects = XMLHelpers.GetAllProjects();

            List<Link> links = new List<Link>();
            foreach (var item in projects.Where(x => x.Archived == archived))
            {
                Link link = new Link()
                {
                    Name = item.ProjectName,
                    Url = "/projects/project/" + item.ProjectName
                };
                links.Add(link);
            }

            return links;
        }