Example #1
0
        public TopLinkSettings()
        {
            Links = new TopLinkCollection();

            TopLink link = new TopLink();

            link.LinkID          = -1;
            link.Name            = "版块导航";
            link.OnlyLoginCanSee = false;
            link.SortOrder       = -2;
            link.Url             = "/default.aspx";

            Links.Add(link);

            link                 = new TopLink();
            link.LinkID          = -2;
            link.Name            = "个人空间";
            link.OnlyLoginCanSee = true;
            link.SortOrder       = -1;
            link.Url             = MaxLabs.bbsMax.Common.UrlHelper.GetSpaceUrlTag("$MyUserID");

            Links.Add(link);

            MaxID = 2;
        }
Example #2
0
 public int CompareTo(TopLink link)
 {
     return(this.SortOrder.CompareTo(link.SortOrder));
 }