void ControlTreeDataLoader.LoadData()
        {
            CssClass = CssClass.ConcatenateWithSpace(CssElementCreator.CssClass);
            var pagePath = EwfPage.Instance.InfoAsBaseType.ResourcePath;

            foreach (var resource in pagePath.Take(pagePath.Count - 1))
            {
                Controls.Add(
                    EwfLink.Create(resource, new ButtonActionControlStyle(resource.ResourceFullName, buttonSize: ButtonActionControlStyle.ButtonSize.ShrinkWrap)));
                Controls.Add(ResourceInfo.ResourcePathSeparator.GetLiteralControl());
            }
            if (pageName != null)
            {
                Controls.Add(pageName);
            }
            else if (Controls.Count > 0)
            {
                Controls.RemoveAt(Controls.Count - 1);
            }
        }
 /// <summary>
 /// Standard Library use only. Do not call if there is no authenticated user.
 /// </summary>
 public void LoadData(PageInfo changePasswordPage)
 {
     this.AddControlsReturnThis(("Logged in as " + AppTools.User.Email).GetLiteralControl());
     if (!FormsAuthStatics.FormsAuthEnabled)
     {
         return;
     }
     this.AddControlsReturnThis(
         new LiteralControl("&nbsp;&nbsp;"),
         EwfLink.Create(changePasswordPage, new TextActionControlStyle("Change password")),
         new LiteralControl("&nbsp;&bull;&nbsp;"),
         new PostBackButton(
             PostBack.CreateFull(
                 id: "ewfLogOut",
                 firstModificationMethod: FormsAuthStatics.LogOutUser,
                 actionGetter: () => {
         // NOTE: Is this the correct behavior if we are already on a public page?
         return(new PostBackAction(new ExternalResourceInfo(NetTools.HomeUrl)));
     }),
             new TextActionControlStyle("Log out"),
             false));
 }