示例#1
0
        protected void RenderColor(CalendarAdapter calendarAdapter)
        {
            int num = -2;

            if (this.sessionContext.CanActAsOwner)
            {
                num = calendarAdapter.CalendarColor;
                if (!CalendarColorManager.IsColorIndexValid(num))
                {
                    num = -2;
                }
            }
            this.RenderValue(this.Output, "iClr", CalendarColorManager.GetClientColorIndex(num));
        }
示例#2
0
 // Token: 0x06002420 RID: 9248 RVA: 0x000D0834 File Offset: 0x000CEA34
 protected override void RenderAdditionalProperties(TextWriter writer)
 {
     writer.Write(" _fid=\"");
     Utilities.HtmlEncode(base.FolderId.ToBase64String(), writer);
     writer.Write("\"");
     if (this.navigationNodeFolder.NavigationNodeGroupSection == NavigationNodeGroupSection.Calendar && CalendarColorManager.IsColorIndexValid(this.navigationNodeFolder.NavigationNodeCalendarColor))
     {
         writer.Write(" _iSavedColor=");
         writer.Write(CalendarColorManager.GetClientColorIndex(this.navigationNodeFolder.NavigationNodeCalendarColor));
     }
     if (this.navigationNodeFolder.IsFilteredView)
     {
         writer.Write(" _fltr=1");
     }
     if (this.navigationNodeFolder.NavigationNodeGroupSection == NavigationNodeGroupSection.First && this.elcPolicyFolderId != null)
     {
         writer.Write(" _sPlcyFId=\"");
         Utilities.HtmlEncode(this.elcPolicyFolderId.ToBase64String(), writer);
         writer.Write("\"");
     }
     base.RenderAdditionalProperties(writer);
 }