void ReleaseDesignerOutlets() { if (btnIcon != null) { btnIcon.Dispose(); btnIcon = null; } if (DashboardMainView != null) { DashboardMainView.Dispose(); DashboardMainView = null; } if (ResListTable != null) { ResListTable.Dispose(); ResListTable = null; } if (TopNavBar != null) { TopNavBar.Dispose(); TopNavBar = null; } if (txtActionBarText != null) { txtActionBarText.Dispose(); txtActionBarText = null; } }
public ActionResult TopNavBar() { var topNavBar = new TopNavBar { Admin = User.IsInRole("Admin") }; return(View(topNavBar)); }
void ShowTopNavBar() { TopNavBar= new TopNavBar(default(Element),"Calamar","No logged","",navlist=>{ }); Document.Body.AppendChild(TopNavBar.Element()); }