Esempio n. 1
0
 internal static void RenderSecondaryNavigation(TextWriter output, CalendarFolder folder, UserContext userContext)
 {
     output.Write("<div id=\"divCalPicker\">");
     RenderingUtilities.RenderSecondaryNavigationDatePicker(folder, output, "divErrDP", "dp", userContext);
     new MonthPicker(userContext, "divMp").Render(output);
     output.Write("</div>");
     NavigationHost.RenderNavigationTreeControl(output, userContext, NavigationModule.Calendar);
 }
Esempio n. 2
0
        // Token: 0x06002441 RID: 9281 RVA: 0x000D1ACC File Offset: 0x000CFCCC
        internal static void RenderNavigationTreeControl(TextWriter writer, UserContext userContext, NavigationModule navigationModule)
        {
            NavigationNodeGroupSection groupSection;

            switch (navigationModule)
            {
            case NavigationModule.Calendar:
                groupSection = NavigationNodeGroupSection.Calendar;
                break;

            case NavigationModule.Contacts:
                groupSection = NavigationNodeGroupSection.Contacts;
                break;

            case NavigationModule.Tasks:
                groupSection = NavigationNodeGroupSection.Tasks;
                break;

            default:
                throw new ArgumentException("Navigation tree is only available in calendar, contact and task.");
            }
            NavigationHost.RenderNavigationTreeControl(writer, userContext, groupSection, null);
        }