Пример #1
0
 public void RenderMailMove(FolderList allFolderList, StoreObjectId selectedFolderId, string dropdownName, TextWriter writer)
 {
     if (allFolderList == null)
     {
         throw new ArgumentNullException("allFolderList");
     }
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     FolderDropdown.FolderFilterOptions folderFilterOptions = FolderDropdown.FolderFilterOptions.SpecialFolders | FolderDropdown.FolderFilterOptions.DeletedItemsFolder | FolderDropdown.FolderFilterOptions.DeletedFolders | FolderDropdown.FolderFilterOptions.UnknownFolderType;
     FolderDropdown.RenderingOptions    renderingOptions    = FolderDropdown.RenderingOptions.Hierarchy;
     FolderDropdown.RenderFolderList(allFolderList, null, null, selectedFolderId, new Dictionary <string, string>(4)
     {
         {
             "name",
             dropdownName
         },
         {
             "id",
             "selfld"
         },
         {
             "onchange",
             "onChgFldSel()"
         },
         {
             "onkeypress",
             "onKPFldSel(event)"
         }
     }, folderFilterOptions, renderingOptions, this.userContext, writer, new FolderDropDownFilterDelegate[0]);
 }
Пример #2
0
 public void RenderMailFolderToCreateIn(FolderList folderList, StoreObjectId selectedFolderId, TextWriter writer)
 {
     if (folderList == null)
     {
         throw new ArgumentNullException("folderList");
     }
     string[] folderTypes = new string[]
     {
         "IPF.Note"
     };
     FolderDropdown.RenderFolderList(folderList, null, folderTypes, selectedFolderId, new Dictionary <string, string>(3)
     {
         {
             "name",
             "ftci"
         },
         {
             "id",
             "ftci"
         },
         {
             "class",
             "flddds"
         }
     }, FolderDropdown.FolderFilterOptions.SpecialFolders, FolderDropdown.RenderingOptions.Root | FolderDropdown.RenderingOptions.Hierarchy, this.userContext, writer, new FolderDropDownFilterDelegate[0]);
 }
Пример #3
0
        public void RenderFolderToDelete(FolderList folderList, string defaultText, TextWriter writer, params FolderDropDownFilterDelegate[] filters)
        {
            if (folderList == null)
            {
                throw new ArgumentNullException("folderList");
            }
            IDictionary <string, string> dictionary = new Dictionary <string, string>(4);

            dictionary.Add("name", "ftd");
            dictionary.Add("id", "ftd");
            dictionary.Add("class", "flddd dddt");
            dictionary.Add("onchange", "onChgDel(this)");
            FolderDropdown.FolderFilterOptions folderFilterOptions = FolderDropdown.FolderFilterOptions.SpecialFolders | FolderDropdown.FolderFilterOptions.DeletedItemsFolder | FolderDropdown.FolderFilterOptions.DeletedFolders;
            FolderDropdown.RenderFolderList(folderList, defaultText, null, null, dictionary, folderFilterOptions, FolderDropdown.RenderingOptions.Hierarchy, this.userContext, writer, filters);
        }
Пример #4
0
        public void RenderMailFolderToMove(FolderList folderList, StoreObjectId selectedFolderId, TextWriter writer)
        {
            if (folderList == null)
            {
                throw new ArgumentNullException("folderList");
            }
            string[] folderTypes = new string[]
            {
                "IPF.Note"
            };
            IDictionary <string, string> dictionary = new Dictionary <string, string>(4);

            dictionary.Add("name", "ftm");
            dictionary.Add("id", "ftm");
            dictionary.Add("class", "flddd");
            dictionary.Add("onchange", "onChgFToMv()");
            FolderDropdown.FolderFilterOptions folderFilterOptions = FolderDropdown.FolderFilterOptions.SpecialFolders | FolderDropdown.FolderFilterOptions.DeletedItemsFolder | FolderDropdown.FolderFilterOptions.DeletedFolders;
            FolderDropdown.RenderFolderList(folderList, LocalizedStrings.GetHtmlEncoded(-311510783), folderTypes, selectedFolderId, dictionary, folderFilterOptions, FolderDropdown.RenderingOptions.Hierarchy, this.userContext, writer, new FolderDropDownFilterDelegate[0]);
        }
Пример #5
0
 private void RenderFolderToRename(FolderList folderList, string defaultText, string[] folderTypes, StoreObjectId selectedFolderId, string dropdownName, FolderDropdown.FolderFilterOptions folderFilterOptions, FolderDropdown.RenderingOptions renderingOptions, TextWriter writer, params FolderDropDownFilterDelegate[] filters)
 {
     FolderDropdown.RenderFolderList(folderList, defaultText, folderTypes, selectedFolderId, new Dictionary <string, string>(4)
     {
         {
             "name",
             dropdownName
         },
         {
             "id",
             dropdownName
         },
         {
             "class",
             "flddd"
         },
         {
             "onchange",
             "onChgRn()"
         }
     }, folderFilterOptions, renderingOptions, this.userContext, writer, filters);
 }
Пример #6
0
 public void RenderContactMove(ContactFolderList contactFolderList, StoreObjectId selectedFolderId, string dropdownName, TextWriter writer)
 {
     if (contactFolderList == null)
     {
         throw new ArgumentNullException("contactFolderList");
     }
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     FolderDropdown.FolderFilterOptions folderFilterOptions = FolderDropdown.FolderFilterOptions.SpecialFolders;
     FolderDropdown.RenderFolderList(contactFolderList, null, null, selectedFolderId, new Dictionary <string, string>(2)
     {
         {
             "name",
             dropdownName
         },
         {
             "id",
             "selfld"
         }
     }, folderFilterOptions, FolderDropdown.RenderingOptions.None, this.userContext, writer, new FolderDropDownFilterDelegate[0]);
 }
Пример #7
0
 public void RenderAllFolderSelectInMailSecondaryNavigation(FolderList folderList, StoreObjectId selectedFolderId, TextWriter writer)
 {
     if (folderList == null)
     {
         throw new ArgumentNullException("folderList");
     }
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     FolderDropdown.FolderFilterOptions folderFilterOptions = FolderDropdown.FolderFilterOptions.SpecialFolders | FolderDropdown.FolderFilterOptions.DeletedItemsFolder | FolderDropdown.FolderFilterOptions.DeletedFolders | FolderDropdown.FolderFilterOptions.UnknownFolderType | FolderDropdown.FolderFilterOptions.FoldersAbleToViewInMailModule;
     FolderDropdown.RenderingOptions    renderingOptions    = FolderDropdown.RenderingOptions.ItemCount | FolderDropdown.RenderingOptions.Hierarchy | FolderDropdown.RenderingOptions.WholeLinkAsOptionValue | FolderDropdown.RenderingOptions.FolderDisplayNameAsTitle;
     FolderDropdown.RenderFolderList(folderList, null, null, selectedFolderId, new Dictionary <string, string>(2)
     {
         {
             "id",
             "selbrfld"
         },
         {
             "title",
             LocalizedStrings.GetHtmlEncoded(909860845)
         }
     }, folderFilterOptions, renderingOptions, this.userContext, writer, new FolderDropDownFilterDelegate[0]);
 }