Beispiel #1
0
    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);
    }
Beispiel #2
0
    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);
    }