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") }); } }
public void UpdateBreadcrumbs(DisassembledEntity selectedEntity) { Breadcrumbs.Clear(); var current = selectedEntity; while (current != null) { Breadcrumbs.Insert(0, current); current = current.Parent; } }
public void Insert(IBreadcrumbItem item, int index = 0) { Breadcrumbs.Insert(index, CreateBreadcrumb(item)); }