Example #1
0
 private void CheckBreadCrumbs()
 {
     if (Breadcrumbs.Count >= 1 && !Breadcrumbs[0].Caption.Equals(WikiResource.WikiBreadcrumbsModuleName, StringComparison.InvariantCultureIgnoreCase))
     {
         Breadcrumbs.Insert(0, new BreadCrumb()
         {
             Caption = WikiResource.WikiBreadcrumbsModuleName, NavigationUrl = this.ResolveUrlLC("Default.aspx")
         });
     }
 }
Example #2
0
        public void UpdateBreadcrumbs(DisassembledEntity selectedEntity)
        {
            Breadcrumbs.Clear();

            var current = selectedEntity;

            while (current != null)
            {
                Breadcrumbs.Insert(0, current);
                current = current.Parent;
            }
        }
Example #3
0
 public void Insert(IBreadcrumbItem item, int index = 0)
 {
     Breadcrumbs.Insert(index, CreateBreadcrumb(item));
 }