protected void CreateAttachmentHelpers(AttachmentWellType wellType) { if (JunkEmailUtilities.IsJunkOrPhishing(this.Item, this.IsEmbeddedItem, base.UserContext)) { this.shouldRenderAttachmentWell = false; return; } this.attachmentWellRenderObjects = AttachmentWell.GetAttachmentInformation(this.Item, this.AttachmentLinks, base.UserContext.IsPublicLogon, this.IsEmbeddedItem); if (this.attachmentWellRenderObjects != null && this.attachmentWellRenderObjects.Count > 0 && Utilities.IsClearSigned(this.Item)) { AttachmentUtility.RemoveSmimeAttachment(this.attachmentWellRenderObjects); } if (this.Item is Contact) { OwaForm.RemoveContactPhoto(this.attachmentWellRenderObjects); } InfobarRenderingHelper infobarRenderingHelper = new InfobarRenderingHelper(this.attachmentWellRenderObjects); if (wellType == AttachmentWellType.ReadOnly && infobarRenderingHelper.HasLevelOneAndBlock) { this.infobar.AddMessageText(string.Format(CultureInfo.InvariantCulture, LocalizedStrings.GetNonEncoded(-824680214), new object[] { infobarRenderingHelper.FileNameStringForLevelOneAndBlock }), InfobarMessageType.Informational); } else if (wellType != AttachmentWellType.ReadOnly && infobarRenderingHelper.HasLevelOneAndBlock) { this.infobar.AddMessageLocalized(-2118248931, InfobarMessageType.Informational); } bool flag = AttachmentUtility.IsOutLine(this.attachmentWellRenderObjects); this.shouldRenderAttachmentWell = (wellType == AttachmentWellType.ReadWrite || (flag && wellType == AttachmentWellType.ReadOnly && (infobarRenderingHelper.HasLevelTwo || infobarRenderingHelper.HasLevelThree || infobarRenderingHelper.HasWebReadyFirst))); }
protected void CreateAttachmentHelpers() { if (this.calendarItemBase != null) { this.attachmentInformation = AttachmentWell.GetAttachmentInformation(this.calendarItemBase, base.AttachmentLinks, base.UserContext.IsPublicLogon); InfobarRenderingHelper infobarRenderingHelper = new InfobarRenderingHelper(this.attachmentInformation); if (infobarRenderingHelper.HasLevelOne) { this.infobar.AddMessage(SanitizedHtmlString.FromStringId(-2118248931), InfobarMessageType.Informational, AttachmentWell.AttachmentInfobarHtmlTag); } } }
// Token: 0x0600281C RID: 10268 RVA: 0x000E3208 File Offset: 0x000E1408 protected void CreateAttachmentHelpers() { bool isPublicLogon = base.UserContext.IsPublicLogon; this.attachmentWellRenderObjects = AttachmentWell.GetAttachmentInformation(base.Item, base.AttachmentLinks, isPublicLogon); InfobarRenderingHelper infobarRenderingHelper = new InfobarRenderingHelper(this.attachmentWellRenderObjects); if (infobarRenderingHelper.HasLevelOne) { this.infobar.AddMessage(SanitizedHtmlString.FromStringId(-2118248931), InfobarMessageType.Informational, AttachmentWell.AttachmentInfobarHtmlTag); } }
protected void CreateAttachmentHelpers() { if (this.post == null) { return; } this.attachmentWellRenderObjects = AttachmentWell.GetAttachmentInformation(this.post, base.AttachmentLinks, base.UserContext.IsPublicLogon, base.IsEmbeddedItem); InfobarRenderingHelper infobarRenderingHelper = new InfobarRenderingHelper(this.attachmentWellRenderObjects); if (infobarRenderingHelper.HasLevelOne) { this.infobar.AddMessage(SanitizedHtmlString.FromStringId(-2118248931), InfobarMessageType.Informational, AttachmentWell.AttachmentInfobarHtmlTag); } }
// Token: 0x060027F9 RID: 10233 RVA: 0x000E277C File Offset: 0x000E097C protected void CreateAttachmentHelpers() { if (base.Item != null) { this.attachmentWellRenderObjects = AttachmentWell.GetAttachmentInformation(base.Item, base.AttachmentLinks, base.UserContext.IsPublicLogon); foreach (object obj in this.attachmentWellRenderObjects) { AttachmentWellInfo attachmentWellInfo = (AttachmentWellInfo)obj; if (string.CompareOrdinal("ContactPicture.jpg", attachmentWellInfo.FileName) == 0) { this.attachmentWellRenderObjects.Remove(attachmentWellInfo); break; } } InfobarRenderingHelper infobarRenderingHelper = new InfobarRenderingHelper(this.attachmentWellRenderObjects); if (infobarRenderingHelper.HasLevelOne) { this.infobar.AddMessage(SanitizedHtmlString.FromStringId(-2118248931), InfobarMessageType.Informational, AttachmentWell.AttachmentInfobarHtmlTag); } } }