public void AddBreadCrumb(string label, string link, bool leaf) { if (this.breadCrumb == null) { this.breadCrumb = new Collection <BreadCrumItem>(); } BreadCrumItem newBreadCrumb = new BreadCrumItem() { Link = link, Label = label, Leaf = leaf }; this.breadCrumb.Add(newBreadCrumb); }
public void AddBreadCrumbInvariant(string label) { if (this.breadCrumb == null) { this.breadCrumb = new Collection <BreadCrumItem>(); } BreadCrumItem newBreadCrumb = new BreadCrumItem() { Link = "#", Label = label, Leaf = true, Invariant = true }; this.breadCrumb.Add(newBreadCrumb); }