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");
            }
        }
        public void GetSecondaryNavigation()
        {
            ExTraceGlobals.MailCallTracer.TraceDebug((long)this.GetHashCode(), "NavigationEventHandler.GetSecondaryNavigation");
            switch ((NavigationModule)base.GetParameter("m"))
            {
            case NavigationModule.Mail:
                NavigationHost.RenderMailSecondaryNavigation(this.Writer, base.UserContext);
                return;

            case NavigationModule.Calendar:
                if (!base.UserContext.IsFeatureEnabled(Feature.Calendar))
                {
                    throw new OwaSegmentationException("The calendar is disabled");
                }
                using (CalendarFolder folder = Utilities.GetFolder <CalendarFolder>(base.UserContext, base.UserContext.CalendarFolderOwaId, new PropertyDefinition[]
                {
                    ViewStateProperties.CalendarViewType,
                    ViewStateProperties.DailyViewDays
                }))
                {
                    DailyView.RenderSecondaryNavigation(this.Writer, folder, base.UserContext);
                    return;
                }
                break;

            case NavigationModule.Contacts:
                break;

            case NavigationModule.Tasks:
                if (!base.UserContext.IsFeatureEnabled(Feature.Tasks))
                {
                    throw new OwaSegmentationException("Tasks are disabled");
                }
                TaskView.RenderSecondaryNavigation(this.Writer, base.UserContext);
                return;

            case NavigationModule.Options:
                return;

            case NavigationModule.AddressBook:
                DirectoryView.RenderSecondaryNavigation(this.Writer, base.UserContext);
                return;

            case NavigationModule.Documents:
                DocumentLibraryUtilities.RenderSecondaryNavigation(this.Writer, base.UserContext);
                return;

            case NavigationModule.PublicFolders:
                NavigationHost.RenderPublicFolderSecondaryNavigation(this.Writer, base.UserContext);
                return;

            default:
                return;
            }
            if (!base.UserContext.IsFeatureEnabled(Feature.Contacts))
            {
                throw new OwaSegmentationException("The Contacts feature is disabled");
            }
            ContactView.RenderSecondaryNavigation(this.Writer, base.UserContext, false);
        }
        protected override QueryFilter GetViewFilter()
        {
            ContactNavigationType filter = ContactNavigationType.All;

            if (base.IsParameterSet("fltr"))
            {
                filter = (ContactNavigationType)base.GetParameter("fltr");
            }
            base.FolderQueryFilter = ContactView.GetFilter(filter);
            return(base.GetViewFilter());
        }
Exemplo n.º 4
0
 // Token: 0x06002781 RID: 10113 RVA: 0x000E096C File Offset: 0x000DEB6C
 internal static void RenderSecondaryNavigation(TextWriter output, UserContext userContext, bool isPicker)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     if (!isPicker)
     {
         ContactView.RenderSecondaryNavigationFilter(output, "divCntFlt");
     }
     NavigationHost.RenderNavigationTreeControl(output, userContext, NavigationModule.Contacts);
 }
Exemplo n.º 5
0
 // Token: 0x0600277C RID: 10108 RVA: 0x000E0843 File Offset: 0x000DEA43
 protected override IListViewDataSource CreateDataSource(ListView listView)
 {
     return(new FolderListViewDataSource(base.UserContext, listView.Properties, base.Folder, listView.GetSortByProperties(), ContactView.GetFilter(this.filter)));
 }
Exemplo n.º 6
0
        // Token: 0x0600277B RID: 10107 RVA: 0x000E07CC File Offset: 0x000DE9CC
        protected override IListView CreateListView(ColumnId sortedColumn, SortOrder sortOrder)
        {
            AddressBookVirtualListView addressBookVirtualListView = new AddressBookVirtualListView(base.UserContext, "divVLV", this.IsMultiLine, ContactView.viewType[(int)this.location], sortedColumn, sortOrder, this.isPaaPkr, this.isMobilePicker, base.Folder, ContactView.GetFilter(this.filter));
            VirtualListView2           virtualListView            = addressBookVirtualListView;
            string name = "iFltr";
            int    num  = (int)this.filter;

            virtualListView.AddAttribute(name, num.ToString(CultureInfo.InvariantCulture));
            addressBookVirtualListView.LoadData(0, 50);
            return(addressBookVirtualListView);
        }