// Token: 0x06001F22 RID: 7970 RVA: 0x000B2F3C File Offset: 0x000B113C
        private CategoryDropDownList(OwaStoreObjectId folderId) : base("divCDd", null, null)
        {
            UserContext        userContext        = UserContextManager.GetUserContext();
            MasterCategoryList masterCategoryList = userContext.GetMasterCategoryList(folderId);

            if (masterCategoryList != null)
            {
                this.categories = masterCategoryList.ToArray();
                Array.Sort <Category>(this.categories, new MostRecentlyUsedCategories.CategoryNameComparer());
                if (0 < this.categories.Length)
                {
                    this.selectedCategory = this.categories[0];
                    base.SelectedValue    = this.selectedCategory.Name;
                    return;
                }
            }
            else
            {
                this.categories = new Category[0];
            }
        }
        // Token: 0x06000C4D RID: 3149 RVA: 0x00054A04 File Offset: 0x00052C04
        private MostRecentlyUsedCategories(MasterCategoryList masterCategoryList, OutlookModule outlookModule)
        {
            Category[] array = masterCategoryList.ToArray();
            Array.Sort <Category>(array, MasterCategoryList.CreateUsageBasedComparer(outlookModule));
            int num = 10;

            if (array.Length < 10)
            {
                num = array.Length;
            }
            this.mostRecentCategories = new Category[num];
            Array.Copy(array, this.mostRecentCategories, num);
            Array.Sort <Category>(this.mostRecentCategories, new MostRecentlyUsedCategories.CategoryNameComparer());
            int num2 = array.Length - num;

            if (0 < num2)
            {
                this.otherCategories = new Category[num2];
                Array.Copy(array, num, this.otherCategories, 0, num2);
                Array.Sort <Category>(this.otherCategories, new MostRecentlyUsedCategories.CategoryNameComparer());
            }
        }