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)); }
// 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); }
// Token: 0x06002590 RID: 9616 RVA: 0x000D9548 File Offset: 0x000D7748 internal void Build(Infobar infobar) { SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>(); sanitizingStringBuilder.Append("<div id=divSFIB "); if (this.colorIndex != -2) { sanitizingStringBuilder.Append("class=bcal"); sanitizingStringBuilder.Append <int>(CalendarColorManager.GetClientColorIndex(this.colorIndex)); } else { sanitizingStringBuilder.Append("class=calNoClr"); } sanitizingStringBuilder.Append(">"); string str = this.userContext.IsRtl ? "<div class=\"fltRight\"" : "<div class=\"fltLeft\""; sanitizingStringBuilder.Append(str); if (this.isSharedFolder && this.renderNotifyForOtherUser) { sanitizingStringBuilder.Append("><input type=\"checkbox\" id=\"chkNtfy\"></div>"); sanitizingStringBuilder.Append(str); sanitizingStringBuilder.Append(" id=\"divNtfy\"><label for=\"chkNtfy\">"); sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(816646619)); sanitizingStringBuilder.Append(" "); sanitizingStringBuilder.Append <SanitizedHtmlString>(this.folderOwnerEncodedName); sanitizingStringBuilder.Append("</label></div>"); str = (this.userContext.IsRtl ? "<div class=\"fltLeft\"" : "<div class=\"fltRight\""); sanitizingStringBuilder.Append(str); } if (!this.isSharedFolder || !this.renderNotifyForOtherUser) { sanitizingStringBuilder.Append(" id=\"divShrType\">"); this.BuildFolderType(sanitizingStringBuilder); } else { sanitizingStringBuilder.Append(" id=\"divShrName\">"); this.BuildFolderName(sanitizingStringBuilder); } sanitizingStringBuilder.Append(this.userContext.DirectionMark); sanitizingStringBuilder.Append("</div>"); sanitizingStringBuilder.Append(str); sanitizingStringBuilder.Append(" id=\"divShrImg\">"); this.BuildIcon(sanitizingStringBuilder); sanitizingStringBuilder.Append(this.userContext.DirectionMark); sanitizingStringBuilder.Append("</div>"); sanitizingStringBuilder.Append(str); if (!this.isSharedFolder || !this.renderNotifyForOtherUser) { sanitizingStringBuilder.Append(" id=\"divShrName\">"); this.BuildFolderName(sanitizingStringBuilder); } else { sanitizingStringBuilder.Append(" id=\"divShrType\">"); this.BuildFolderType(sanitizingStringBuilder); } sanitizingStringBuilder.Append("</div></div>"); infobar.AddMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divCalendarInfobarMessage"); }
// Token: 0x06001F38 RID: 7992 RVA: 0x000B36A4 File Offset: 0x000B18A4 protected override void RenderExpandoData(TextWriter output) { output.Write(" _colorIndexStart=\""); output.Write(CalendarColorManager.GetClientColorIndex(0)); output.Write("\""); }