Exemple #1
0
 public Sitemap ParseSitemap(XElement sitemapNode)
 {
     var map = new Sitemap();
     map.Link = GetValue(sitemapNode, "link");
     map.Name = GetValue(sitemapNode, "name");
     map.Label = GetValue(sitemapNode, "label");
     map.Homepage = ParsePage(sitemapNode.Element("homepage"));
     return map;
 }
        private void SitemapTapped(Sitemap obj)
        {
            if (obj == null) return;

            CurrentSetup.Sitemap = obj.Name;
            _database.UpdateSetup(CurrentSetup);

            _navigationService.ClearHistory();
            _navigationService.Navigate(PageTokens.HomePage, null);
        }
Exemple #3
0
 public static Sitemap ToSitemapDetail(this JsonObject jo, Sitemap sitemap = null)
 {
     if (sitemap == null) sitemap = jo.ToSitemap();
     sitemap.Homepage = jo.GetNamedObject("homepage").ToPage();
     return sitemap;
 }