Example #1
0
 public MainMenu(Micajah.Common.Pages.MasterPage masterPage, UserContext user, IList actionIdList, bool isFrameworkAdmin, bool isAuthenticated)
 {
     m_MasterPage       = masterPage;
     m_UserContext      = user;
     m_ActionIdList     = actionIdList;
     m_IsFrameworkAdmin = isFrameworkAdmin;
     m_IsAuthenticated  = isAuthenticated;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the DetailMenu class.
 /// </summary>
 public DetailMenu(Micajah.Common.Pages.MasterPage masterPage, IList actionIdList, bool isFrameworkAdmin, bool isAuthenticated)
 {
     m_PrimaryMenuItems = new ActionCollection();
     m_OtherMenuItems   = new ActionCollection();
     m_MasterPage       = masterPage;
     m_ActionIdList     = actionIdList;
     m_IsFrameworkAdmin = isFrameworkAdmin;
     m_IsAuthenticated  = isAuthenticated;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the Submenu control as left submenu.
 /// </summary>
 public Submenu(Micajah.Common.Pages.MasterPage masterPage, IList actionIdList, bool isFrameworkAdmin, bool isAuthenticated)
 {
     m_MasterPage       = masterPage;
     m_ActionIdList     = actionIdList;
     m_IsFrameworkAdmin = isFrameworkAdmin;
     m_IsAuthenticated  = isAuthenticated;
     m_Position         = SubmenuPosition.Left;
     m_ModernTheme      = (FrameworkConfiguration.Current.WebApplication.MasterPage.Theme == MasterPageTheme.Modern);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public Header(Micajah.Common.Pages.MasterPage masterPage, IList actionIdList, bool isFrameworkAdmin, bool isAuthenticated, UserContext user)
 {
     m_MasterPage         = masterPage;
     m_ActionIdList       = actionIdList;
     m_IsFrameworkAdmin   = isFrameworkAdmin;
     m_IsAuthenticated    = isAuthenticated;
     m_UserContext        = user;
     m_MasterPageSettings = FrameworkConfiguration.Current.WebApplication.MasterPage;
     m_ModernTheme        = (m_MasterPageSettings.Theme == MasterPageTheme.Modern);
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the BreadCrumbs class.
 /// </summary>
 public Breadcrumbs(Micajah.Common.Pages.MasterPage masterPage)
 {
     m_MasterPage      = masterPage;
     m_ColumnWidth     = new Unit(-1);
     m_ShowBreadCrumbs = true;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the Submenu control with specified type.
 /// </summary>
 /// <param name="position">Specifies the position of the submenu on the page. One of the SubmenuPosition enumerations.</param>
 public Submenu(Micajah.Common.Pages.MasterPage masterPage, IList actionIdList, bool isFrameworkAdmin, bool isAuthenticated, SubmenuPosition position)
     : this(masterPage, actionIdList, isFrameworkAdmin, isAuthenticated)
 {
     m_Position = position;
 }