public void GetPublicFolderSecondaryNavigationFilter()
        {
            ExTraceGlobals.MailCallTracer.TraceDebug((long)this.GetHashCode(), "NavigationEventHandler.GetSecondaryNavigationFilter");
            string containerClass = (string)base.GetParameter("t");

            if (ObjectClass.IsCalendarFolder(containerClass))
            {
                OwaStoreObjectId folderId = (OwaStoreObjectId)base.GetParameter("fId");
                using (CalendarFolder folder = Utilities.GetFolder <CalendarFolder>(base.UserContext, folderId, new PropertyDefinition[]
                {
                    ViewStateProperties.CalendarViewType,
                    ViewStateProperties.DailyViewDays
                }))
                {
                    this.Writer.Write("<div id=divPFCalFlt style=\"display:none\">");
                    RenderingUtilities.RenderSecondaryNavigationDatePicker(folder, this.Writer, "divErrPfDp", "divPfDp", base.UserContext);
                    new MonthPicker(base.UserContext, "divPfMp").Render(this.Writer);
                    this.Writer.Write("</div>");
                    return;
                }
            }
            if (ObjectClass.IsContactsFolder(containerClass))
            {
                ContactView.RenderSecondaryNavigationFilter(this.Writer, "divPFCntFlt");
                return;
            }
            if (ObjectClass.IsTaskFolder(containerClass))
            {
                TaskView.RenderSecondaryNavigationFilter(this.Writer, "divPFTskFlt");
            }
        }
示例#2
0
 internal static void RenderSecondaryNavigation(TextWriter output, UserContext userContext)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     TaskView.RenderSecondaryNavigationFilter(output, "divTskFlt");
     NavigationHost.RenderNavigationTreeControl(output, userContext, NavigationModule.Tasks);
 }