public void ResolveOneRecipientForAnrMenu()
        {
            ExTraceGlobals.MailCallTracer.TraceDebug((long)this.GetHashCode(), "RecipientWellEventHandler.ResolveOneRecipientForAnrMenu");
            bool flag  = false;
            bool flag2 = false;

            if (base.IsParameterSet("AddMenuMarkup"))
            {
                flag = (bool)base.GetParameter("AddMenuMarkup");
            }
            if (base.IsParameterSet("AddRecipientResults"))
            {
                flag2 = (bool)base.GetParameter("AddRecipientResults");
            }
            StringBuilder stringBuilder = new StringBuilder();

            using (StringWriter stringWriter = new StringWriter(stringBuilder))
            {
                if (flag)
                {
                    this.GetRecipientAnrContextMenu(stringWriter);
                    RenderingUtilities.RenderStringVariable(this.Writer, "sHtmlMenu", stringWriter.ToString());
                }
                stringBuilder.Length = 0;
                if (flag2)
                {
                    this.ResolveOneRecipientAndRenderResults(stringWriter);
                    RenderingUtilities.RenderStringVariable(this.Writer, "rgRecips", stringWriter.ToString());
                }
            }
        }
Ejemplo n.º 2
0
 // Token: 0x060002F5 RID: 757 RVA: 0x0001A674 File Offset: 0x00018874
 public override void RenderScript()
 {
     RenderingUtilities.RenderStringVariable(this.writer, "L_CfRmDv", -642460312);
     RenderingUtilities.RenderStringVariable(this.writer, "L_CfBlkDv", 1558810407);
     RenderingUtilities.RenderStringVariable(this.writer, "L_CfWpDt", 2018287373);
     RenderingUtilities.RenderStringVariable(this.writer, "L_RmWp", -1890179315);
 }
Ejemplo n.º 3
0
        protected void RenderVariableSaveAttachmentToDiskMessage()
        {
            string input = string.Empty;

            if (base.UserContext.IsBasicExperience)
            {
                input = LocalizedStrings.GetNonEncoded(-353246432);
            }
            else
            {
                input = base.GetSaveAttachmentToDiskMessage(687430467);
            }
            RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "a_sL2Aw", input);
        }
Ejemplo n.º 4
0
 // Token: 0x060020E5 RID: 8421 RVA: 0x000BD7E8 File Offset: 0x000BB9E8
 private void RenderDelegateMailboxInfo()
 {
     if (base.Item != null && base.UserContext != null)
     {
         MailboxSession mailboxSession = base.Item.Session as MailboxSession;
         if (mailboxSession != null)
         {
             IExchangePrincipal mailboxOwner = mailboxSession.MailboxOwner;
             if (mailboxOwner != null && mailboxOwner != base.UserContext.ExchangePrincipal)
             {
                 RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "a_sDelegateMailboxGuid", mailboxOwner.MailboxInfo.MailboxGuid.ToString());
                 byte[] bytes = Encoding.UTF8.GetBytes(mailboxOwner.LegacyDn);
                 RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "a_sDelegateMailboxLegacyDN", Convert.ToBase64String(bytes));
             }
         }
     }
 }
Ejemplo n.º 5
0
 // Token: 0x060020E4 RID: 8420 RVA: 0x000BD568 File Offset: 0x000BB768
 protected void RenderDataNeededBySilverlightAttachmentManager()
 {
     if (base.IsSilverlightEnabled)
     {
         RenderingUtilities.RenderSmallIconTable(base.SanitizingResponse, true);
         RenderingUtilities.RenderSmallIconTable(base.SanitizingResponse, false);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_OpenParen", 6409762);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_CloseParen", -1023695022);
         RenderingUtilities.RenderWebReadyPolicy(base.SanitizingResponse, base.UserContext);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "a_sWRDV", AttachmentWell.GetWebReadyLink(base.UserContext));
         RenderingUtilities.RenderAttachmentBlockingPolicy(base.SanitizingResponse, base.UserContext, false);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_WrnLevelOneReadWrite", -2118248931);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "a_sMBG", base.UserContext.ExchangePrincipal.MailboxInfo.MailboxGuid.ToString());
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ErrAttSilverlightFailure", 1330586559);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ErrCannotConnectToEwsRetry", -158529231);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ErrFileNotFound", 469568033);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ErrFileAlreadyInUse", -1934316340);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ErrAttTooLrg", -178989031);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ErrSingleAttTooLrg", 1582744855);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_AttNmDiv", 440361970);
         this.RenderMaximumRequestLength(base.SanitizingResponse);
         this.RenderMaximumUserMessageSize(base.UserContext, base.SanitizingResponse);
         RenderingUtilities.RenderInteger(base.SanitizingResponse, "a_iEMOEA", 65536);
         RenderingUtilities.RenderInteger(base.SanitizingResponse, "a_iMaxAtt", 499);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ErrAttTooMany", SanitizedHtmlString.Format(LocalizedStrings.GetHtmlEncoded(1025276934), new object[]
         {
             499
         }));
         int input = 0;
         if (base.Item != null)
         {
             AttachmentCollection attachmentCollection = Utilities.GetAttachmentCollection(base.Item, false, base.UserContext);
             input = AttachmentUtility.GetTotalAttachmentSize(attachmentCollection);
         }
         RenderingUtilities.RenderInteger(base.SanitizingResponse, "a_sl_iTotalAttachmentSize", input);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ImgFileTypes", -16092782);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_FileTypesSep", 952162300);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_InsertingInlineImage", -242321595);
         RenderingUtilities.RenderStringVariable(base.SanitizingResponse, "L_ErrNonImageFile", -1293887935);
         this.RenderDelegateMailboxInfo();
     }
 }
Ejemplo n.º 6
0
 protected void RenderPontStrings()
 {
     if (base.UserContext.UserOptions.IsPontEnabled(PontType.DeleteFlaggedMessage))
     {
         RenderingUtilities.RenderStringVariable(base.Response.Output, "L_PntMsg", 1701858762);
     }
     if (base.UserContext.UserOptions.IsPontEnabled(PontType.DeleteFlaggedContacts))
     {
         RenderingUtilities.RenderStringVariable(base.Response.Output, "L_PntCnt", -1776379122);
     }
     if (base.UserContext.UserOptions.IsPontEnabled(PontType.DeleteFlaggedItems))
     {
         RenderingUtilities.RenderStringVariable(base.Response.Output, "L_PntMlt", 259109454);
     }
     if (base.UserContext.UserOptions.IsPontEnabled(PontType.DeleteFlaggedContacts) || base.UserContext.UserOptions.IsPontEnabled(PontType.DeleteFlaggedMessage) || base.UserContext.UserOptions.IsPontEnabled(PontType.DeleteFlaggedItems))
     {
         RenderingUtilities.RenderStringVariable(base.Response.Output, "L_Wrn", 1861340610);
         RenderingUtilities.RenderStringVariable(base.Response.Output, "L_Cntnu", -1719707164);
         RenderingUtilities.RenderStringVariable(base.Response.Output, "L_DntShw", -1294868987);
     }
 }
 // Token: 0x06002765 RID: 10085 RVA: 0x000E059B File Offset: 0x000DE79B
 public void RenderVariable(Strings.IDs stringID, string variableName)
 {
     RenderingUtilities.RenderStringVariable(base.SanitizingResponse, variableName, stringID);
 }
 // Token: 0x06002764 RID: 10084 RVA: 0x000E058C File Offset: 0x000DE78C
 public void RenderVariable(string variableValue, string variableName)
 {
     RenderingUtilities.RenderStringVariable(base.SanitizingResponse, variableName, variableValue);
 }
Ejemplo n.º 9
0
        protected void RenderSMimeSavingSendingWarnings(TextWriter writer)
        {
            SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();

            sanitizingStringBuilder.Append("<div>");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(-469017928));
            if (!OwaRegistryKeys.AlwaysEncrypt)
            {
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(302877857));
            }
            sanitizingStringBuilder.Append("</div><br><div>");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1922803157));
            sanitizingStringBuilder.Append("</div>");
            RenderingUtilities.RenderStringVariable(writer, "L_NECSv", sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>());
            sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
            sanitizingStringBuilder.Append("<div>");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1408049888));
            if (!OwaRegistryKeys.AlwaysEncrypt)
            {
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1751385189));
            }
            sanitizingStringBuilder.Append("</div><br><div>");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1922803157));
            sanitizingStringBuilder.Append("</div>");
            RenderingUtilities.RenderStringVariable(writer, "L_NECSnd", sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>());
            sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
            sanitizingStringBuilder.Append("<div>");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1971020450));
            if (!OwaRegistryKeys.AlwaysSign)
            {
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(721900430));
            }
            sanitizingStringBuilder.Append("</div><br><div>");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(OwaRegistryKeys.AllowUserChoiceOfSigningCertificate ? 2099415568 : 1922347219));
            sanitizingStringBuilder.Append("</div>");
            RenderingUtilities.RenderStringVariable(writer, "L_NSCSv", sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>());
            sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
            sanitizingStringBuilder.Append("<div>");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(-2072041142));
            if (!OwaRegistryKeys.AlwaysSign)
            {
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(-1301978547));
            }
            sanitizingStringBuilder.Append("</div><br><div>");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(OwaRegistryKeys.AllowUserChoiceOfSigningCertificate ? 2099415568 : 1922347219));
            sanitizingStringBuilder.Append("</div>");
            RenderingUtilities.RenderStringVariable(writer, "L_NSCSnd", sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>());
            if (base.UserContext.UserOptions.UseManuallyPickedSigningCertificate)
            {
                sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
                sanitizingStringBuilder.Append("<div>");
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1737209722));
                if (!OwaRegistryKeys.AlwaysSign)
                {
                    sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(-1301978547));
                }
                sanitizingStringBuilder.Append("</div><br><div>");
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(2099415568));
                sanitizingStringBuilder.Append("</div>");
                RenderingUtilities.RenderStringVariable(writer, "L_ISCSnd", sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>());
                sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();
                sanitizingStringBuilder.Append("<div>");
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1737209722));
                if (!OwaRegistryKeys.AlwaysSign)
                {
                    sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(721900430));
                }
                sanitizingStringBuilder.Append("</div><br><div>");
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(2099415568));
                sanitizingStringBuilder.Append("</div>");
                RenderingUtilities.RenderStringVariable(writer, "L_ISCSv", sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>());
            }
        }
Ejemplo n.º 10
0
        public void GetFlagDialog()
        {
            ExDateTime       date                      = DateTimeUtilities.GetLocalTime().Date;
            ExDateTime       exDateTime                = ExDateTime.MinValue;
            ExDateTime       exDateTime2               = ExDateTime.MinValue;
            ExDateTime       exDateTime3               = ExDateTime.MinValue;
            bool             flag                      = false;
            FlagStatus       flagStatus                = FlagStatus.NotFlagged;
            bool             flag2                     = true;
            OwaStoreObjectId owaStoreObjectId          = base.GetParameter("fldrId") as OwaStoreObjectId;
            OwaStoreObjectId latestFlaggedOrNormalItem = this.GetLatestFlaggedOrNormalItem();

            if (latestFlaggedOrNormalItem != null)
            {
                using (Item item = Utilities.GetItem <Item>(base.UserContext, latestFlaggedOrNormalItem, FlagEventHandler.prefetchProperties))
                {
                    flag2      = (!Utilities.IsPublic(item) && !(item is MeetingMessage));
                    flagStatus = FlagEventHandler.GetFlagStatus(item);
                    exDateTime = ItemUtility.GetProperty <ExDateTime>(item, TaskSchema.StartDate, ExDateTime.MinValue);
                    if (exDateTime.Year <= 1601)
                    {
                        exDateTime = ExDateTime.MinValue;
                    }
                    exDateTime2 = ItemUtility.GetProperty <ExDateTime>(item, TaskSchema.DueDate, ExDateTime.MinValue);
                    if (exDateTime2.Year <= 1601)
                    {
                        exDateTime2 = ExDateTime.MinValue;
                    }
                    flag = ItemUtility.GetProperty <bool>(item, ItemSchema.ReminderIsSet, false);
                    if (flag)
                    {
                        exDateTime3 = ItemUtility.GetProperty <ExDateTime>(item, ItemSchema.ReminderDueBy, ExDateTime.MinValue);
                        if (exDateTime3.Year <= 1601)
                        {
                            exDateTime3 = ExDateTime.MinValue;
                        }
                    }
                }
            }
            if (owaStoreObjectId != null)
            {
                flag2 = !owaStoreObjectId.IsPublic;
            }
            if (flagStatus == FlagStatus.NotFlagged)
            {
                if (exDateTime2 == ExDateTime.MinValue)
                {
                    exDateTime2 = DateTimeUtilities.GetLocalTime().Date;
                }
                if (exDateTime == ExDateTime.MinValue || exDateTime > exDateTime2)
                {
                    exDateTime = exDateTime2;
                }
            }
            if (exDateTime3 == ExDateTime.MinValue)
            {
                if (exDateTime == ExDateTime.MinValue || exDateTime == date)
                {
                    exDateTime3 = date;
                    int num = base.UserContext.WorkingHours.GetWorkDayEndTime(exDateTime3) - 60;
                    exDateTime3 = exDateTime3.AddMinutes((double)num);
                }
                else
                {
                    exDateTime3 = exDateTime;
                    exDateTime3 = exDateTime3.AddMinutes((double)base.UserContext.WorkingHours.GetWorkDayStartTime(exDateTime3));
                }
            }
            RenderingUtilities.RenderStringVariable(this.Writer, "sDT", LocalizedStrings.GetNonEncoded(-941242639));
            StringBuilder stringBuilder = new StringBuilder();
            StringWriter  stringWriter  = new StringWriter(stringBuilder);

            stringWriter.Write("<table class=flgDtRm><col><col class=pkr><tr><td nowrap>");
            stringWriter.Write(LocalizedStrings.GetHtmlEncoded(1089701318));
            stringWriter.Write("</td><td nowrap>");
            DatePickerDropDownCombo.RenderDatePicker(stringWriter, "tblFlgSD", exDateTime, date, DatePicker.Features.TodayButton | DatePicker.Features.NoneButton);
            stringWriter.Write("</td></tr>");
            stringWriter.Write("<tr><td>");
            stringWriter.Write(LocalizedStrings.GetHtmlEncoded(1012104992));
            stringWriter.Write("</td><td>");
            DatePickerDropDownCombo.RenderDatePicker(stringWriter, "tblFlgDD", exDateTime2, date, DatePicker.Features.TodayButton | DatePicker.Features.NoneButton);
            stringWriter.Write("</td></tr>");
            if (flag2)
            {
                stringWriter.Write("<tr><td colspan=2 nowrap><input type=checkbox id=chkRM");
                if (flag)
                {
                    stringWriter.Write(" checked");
                }
                stringWriter.Write("><label for=chkRM> ");
                stringWriter.Write(LocalizedStrings.GetHtmlEncoded(-1024614879));
                stringWriter.Write("</label></td></tr>");
                stringWriter.Write("<tr><td nowrap class=rmd>");
                stringWriter.Write(LocalizedStrings.GetHtmlEncoded(-1966747526));
                stringWriter.Write("</td><td>");
                DatePickerDropDownCombo.RenderDatePicker(stringWriter, "tblFlgRD", exDateTime3);
                stringWriter.Write("</td></tr>");
                stringWriter.Write("<tr><td nowrap class=rmd>");
                stringWriter.Write(LocalizedStrings.GetHtmlEncoded(-837446999));
                stringWriter.Write("</td><td>");
                TimeDropDownList.RenderTimePicker(stringWriter, exDateTime3, "divFlgRT");
                stringWriter.Write("</td></tr>");
            }
            stringWriter.Write("</table>");
            stringWriter.Close();
            RenderingUtilities.RenderStringVariable(this.Writer, "sD", stringBuilder.ToString());
        }