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;
            }
        }
示例#2
0
        public ActionResult TopNavBar()
        {
            var topNavBar = new TopNavBar {
                Admin = User.IsInRole("Admin")
            };

            return(View(topNavBar));
        }
示例#3
0
		void ShowTopNavBar()
		{
			TopNavBar= new TopNavBar(default(Element),"Calamar","No logged","",navlist=>{
				
			});
			Document.Body.AppendChild(TopNavBar.Element());
			
		}