Ejemplo n.º 1
0
        // Token: 0x060022CD RID: 8909 RVA: 0x000C723C File Offset: 0x000C543C
        public new static InfobarMessage GetFlag(IStorePropertyBag storePropertyBag, UserContext userContext)
        {
            string flag = InfobarMessageBuilderBase.GetFlag(storePropertyBag, userContext);

            if (flag != null)
            {
                return(new InfobarMessage(Utilities.SanitizeHtmlEncode(flag), InfobarMessageType.Informational, "divFlg"));
            }
            return(null);
        }
Ejemplo n.º 2
0
 // Token: 0x060022D0 RID: 8912 RVA: 0x000C7334 File Offset: 0x000C5534
 public static void AddReadReceiptNotice(UserContext userContext, Infobar infobar, IStorePropertyBag storePropertyBag)
 {
     if (InfobarMessageBuilderBase.ShouldRenderReadReceiptNoticeInfobar(userContext, storePropertyBag))
     {
         SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
         sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(115261126));
         sanitizingStringBuilder.Append(" <a href=# id=aRqRcpt>");
         sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1190033799));
         sanitizingStringBuilder.Append("</a>");
         infobar.AddMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divSRR");
     }
 }
Ejemplo n.º 3
0
        // Token: 0x060022CE RID: 8910 RVA: 0x000C7268 File Offset: 0x000C5468
        public static void AddCompliance(UserContext userContext, Infobar infobar, IStorePropertyBag storePropertyBag, bool isSenderMessage)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string compliance = InfobarMessageBuilderBase.GetCompliance(userContext, storePropertyBag, isSenderMessage);

            if (compliance != null)
            {
                infobar.AddMessage(Utilities.SanitizeHtmlEncode(compliance), InfobarMessageType.Informational, "divCmplIB");
            }
        }
Ejemplo n.º 4
0
        // Token: 0x060022CA RID: 8906 RVA: 0x000C7180 File Offset: 0x000C5380
        public static void AddSensitivity(Infobar infobar, IStorePropertyBag storePropertyBag)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string sensitivity = InfobarMessageBuilderBase.GetSensitivity(storePropertyBag);

            if (sensitivity != null)
            {
                infobar.AddMessage(Utilities.SanitizeHtmlEncode(sensitivity), InfobarMessageType.Informational);
            }
        }
Ejemplo n.º 5
0
        // Token: 0x060022C9 RID: 8905 RVA: 0x000C714C File Offset: 0x000C534C
        public static void AddImportance(Infobar infobar, IStorePropertyBag storePropertyBag)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string importance = InfobarMessageBuilderBase.GetImportance(storePropertyBag);

            if (importance != null)
            {
                infobar.AddMessage(Utilities.SanitizeHtmlEncode(importance), InfobarMessageType.Informational);
            }
        }
Ejemplo n.º 6
0
        // Token: 0x06000222 RID: 546 RVA: 0x00013D44 File Offset: 0x00011F44
        public static void AddCompliance(UserContext userContext, Infobar infobar, Item item, bool isSenderMessage)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string compliance = InfobarMessageBuilderBase.GetCompliance(userContext, item, isSenderMessage);

            if (compliance != null)
            {
                infobar.AddMessageText(compliance, InfobarMessageType.Informational);
            }
        }
Ejemplo n.º 7
0
        // Token: 0x06000221 RID: 545 RVA: 0x00013D14 File Offset: 0x00011F14
        public static void AddFlag(Infobar infobar, Item item, UserContext userContext)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string flag = InfobarMessageBuilderBase.GetFlag(item, userContext);

            if (flag != null)
            {
                infobar.AddMessageText(flag, InfobarMessageType.Informational);
            }
        }
Ejemplo n.º 8
0
        // Token: 0x06000220 RID: 544 RVA: 0x00013CE4 File Offset: 0x00011EE4
        public static void AddSensitivity(Infobar infobar, Item item)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string sensitivity = InfobarMessageBuilderBase.GetSensitivity(item);

            if (sensitivity != null)
            {
                infobar.AddMessageText(sensitivity, InfobarMessageType.Informational);
            }
        }
Ejemplo n.º 9
0
        // Token: 0x0600021F RID: 543 RVA: 0x00013CB4 File Offset: 0x00011EB4
        public static void AddImportance(Infobar infobar, Item item)
        {
            if (infobar == null)
            {
                throw new ArgumentNullException("infobar");
            }
            string importance = InfobarMessageBuilderBase.GetImportance(item);

            if (importance != null)
            {
                infobar.AddMessageText(importance, InfobarMessageType.Informational);
            }
        }
Ejemplo n.º 10
0
        // Token: 0x060022CF RID: 8911 RVA: 0x000C72A4 File Offset: 0x000C54A4
        public new static InfobarMessage GetCompliance(UserContext userContext, Guid complianceId)
        {
            string compliance = InfobarMessageBuilderBase.GetCompliance(userContext, complianceId);

            if (compliance != null)
            {
                SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
                sanitizingStringBuilder.Append(compliance);
                if (userContext.ComplianceReader.GetComplianceType(complianceId, userContext.UserCulture) == ComplianceType.RmsTemplate)
                {
                    string str = string.Format(LocalizedStrings.GetNonEncoded(1670455506), userContext.ExchangePrincipal.MailboxInfo.PrimarySmtpAddress.ToString());
                    sanitizingStringBuilder.Append("<br>");
                    sanitizingStringBuilder.Append(str);
                }
                return(new InfobarMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divCmplIB"));
            }
            return(null);
        }
Ejemplo n.º 11
0
 // Token: 0x06000223 RID: 547 RVA: 0x00013D74 File Offset: 0x00011F74
 public static void AddSendReceiptNotice(UserContext userContext, Infobar infobar, MessageItem messageItem)
 {
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     if (infobar == null)
     {
         throw new ArgumentNullException("infobar");
     }
     if (messageItem == null)
     {
         throw new ArgumentNullException("item");
     }
     if (InfobarMessageBuilderBase.ShouldRenderReadReceiptNoticeInfobar(userContext, messageItem))
     {
         SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
         sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(115261126));
         sanitizingStringBuilder.Append(" <a href=\"#\" onclick=\"onClkSndRct()\">");
         sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1190033799));
         sanitizingStringBuilder.Append("</a>");
         infobar.AddMessageHtml(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational);
     }
 }