示例#1
0
        public override void RenderLocation(TextWriter writer)
        {
            bool flag = (this.ChangeHighlight & 8) != 0;

            writer.Write("<td class=\"hdmsb");
            if (flag)
            {
                writer.Write(" updnw");
            }
            writer.Write("\">");
            writer.Write(SanitizedHtmlString.FromStringId(-1134349396));
            writer.Write("</td><td class=\"hdmtxt\">");
            writer.Write("<span");
            if (flag)
            {
                writer.Write(" class=\"updnw\"");
            }
            writer.Write(">");
            writer.Write(this.Location);
            writer.Write("</span>");
            if (flag && this.OldLocation.Length > 0)
            {
                writer.Write("<div class=\"updold\">");
                writer.Write("(");
                writer.Write(this.OldLocation);
                writer.Write(")");
                writer.Write("</div>");
            }
            writer.Write("</td>");
        }
示例#2
0
 protected void RenderMenuItem(ToolbarButton button, bool isDisabled)
 {
     if (button == null)
     {
         throw new ArgumentNullException("button");
     }
     this.writer.Write("<div class=\"menuBtn ");
     this.writer.Write(isDisabled ? "miDa" : "miDf");
     this.writer.Write("\"><a class=\"menuA\" id=\"");
     this.writer.Write(button.Command);
     this.writer.Write("\"");
     if ((button.Flags & ToolbarButtonFlags.Image) != ToolbarButtonFlags.None && (button.Flags & ToolbarButtonFlags.Text) == ToolbarButtonFlags.None)
     {
         this.writer.Write(" title=\"");
         this.writer.Write(SanitizedHtmlString.FromStringId(button.TooltipId));
         this.writer.Write("\"");
     }
     this.writer.Write(" name=\"lnkB\" _mnuItm=\"1\" href=\"#\">");
     if ((button.Flags & ToolbarButtonFlags.Image) != ToolbarButtonFlags.None)
     {
         this.sessionContext.RenderThemeImage(this.writer, button.Image, "menuImgLh tbAfter", new object[0]);
     }
     if ((button.Flags & ToolbarButtonFlags.Text) != ToolbarButtonFlags.None)
     {
         this.writer.Write("<span class=\"menuTxtLh\">");
         this.RenderButtonText(this.writer, button.TextId);
         this.writer.Write("</span>");
     }
     this.writer.Write("</a>");
     this.writer.Write("</div>");
 }
示例#3
0
 protected override void RenderExpandoData(TextWriter writer)
 {
     base.RenderExpandoData(writer);
     writer.Write(" L_Dec=\"");
     writer.Write(SanitizedHtmlString.FromStringId(-1032346272));
     writer.Write("\"");
 }
示例#4
0
        public override void RenderWhen(TextWriter writer)
        {
            bool flag = 0 != (this.ChangeHighlight & 7);

            writer.Write("<td class=\"hdmsb");
            if (flag)
            {
                writer.Write(" updnw");
            }
            writer.Write("\">");
            writer.Write(SanitizedHtmlString.FromStringId(-524211323));
            writer.Write("</td><td class=\"hdmtxt\">");
            writer.Write("<span");
            if (flag)
            {
                writer.Write(" class=\"updnw\"");
            }
            writer.Write(">");
            if (!SanitizedStringBase <OwaHtml> .IsNullOrEmpty(base.When))
            {
                writer.Write(base.When);
            }
            writer.Write("</span>");
            if (flag && this.OldWhen.Length > 0)
            {
                writer.Write("<div class=\"updold\">");
                writer.Write("(");
                writer.Write(this.OldWhen);
                writer.Write(")");
                writer.Write("</div>");
            }
            writer.Write("</td>");
        }
        // Token: 0x06001E1D RID: 7709 RVA: 0x000AE4A4 File Offset: 0x000AC6A4
        public static void RenderInfobar(TextWriter output, ArrayList attachmentList, SanitizedHtmlString errorInAttachments, UserContext userContext)
        {
            if (attachmentList == null)
            {
                return;
            }
            int count = attachmentList.Count;

            if (count <= 0 && errorInAttachments == null)
            {
                return;
            }
            Infobar infobar = new Infobar();

            if (errorInAttachments != null)
            {
                infobar.AddMessage(errorInAttachments, InfobarMessageType.Warning, AttachmentWell.AttachmentInfobarErrorHtmlTag);
            }
            bool flag = AttachmentUtility.IsLevelOneAndBlock(attachmentList);

            if (flag)
            {
                infobar.AddMessage(SanitizedHtmlString.FromStringId(-2118248931), InfobarMessageType.Informational, AttachmentWell.AttachmentInfobarHtmlTag);
            }
            infobar.Render(output);
        }
示例#6
0
 // Token: 0x060025A8 RID: 9640 RVA: 0x000DA174 File Offset: 0x000D8374
 private void RenderSharingOptionItem(TextWriter writer, bool isReadOnly, string radioId, SharingLevel level, Strings.IDs labelStringId)
 {
     writer.Write("<div class=\"shareOptionItem\">");
     writer.Write("<input type=\"radio\" name=\"shOp\" id=\"");
     writer.Write(radioId);
     writer.Write("\" value=\"");
     writer.Write((int)level);
     writer.Write("\"");
     if (this.shareLevel == level)
     {
         writer.Write(" checked");
     }
     if (isReadOnly)
     {
         writer.Write(" disabled");
     }
     writer.Write("><label");
     if (isReadOnly)
     {
         writer.Write(" class=\"grayTxt\"");
     }
     writer.Write(" for=\"");
     writer.Write(radioId);
     writer.Write("\">");
     writer.Write(SanitizedHtmlString.FromStringId(labelStringId));
     writer.Write("</label>");
     writer.Write("</div>");
 }
示例#7
0
        protected override void RenderExpandoData(TextWriter writer)
        {
            base.RenderExpandoData(writer);
            ISessionContext sessionContext = OwaContext.Current.SessionContext;

            writer.Write(" sTm=\"");
            writer.Write(DateTimeUtilities.GetJavascriptDate(this.selectedTime));
            writer.Write("\"");
            if (this.endTime != ExDateTime.MinValue)
            {
                writer.Write(" sEndTm=\"");
                writer.Write(DateTimeUtilities.GetJavascriptDate(this.endTime));
                writer.Write("\"");
            }
            writer.Write(" sStf=\"");
            Utilities.SanitizeHtmlEncode(sessionContext.TimeFormat, writer);
            writer.Write("\"");
            writer.Write(" sAmPmRx=\"");
            TimeDropDownList.RenderAmPmRegularExpression(writer);
            writer.Write("\"");
            writer.Write(" L_InvldTm=\"");
            writer.Write(SanitizedHtmlString.FromStringId(-863308736));
            writer.Write("\"");
            writer.Write(" L_Dec=\"");
            writer.Write(SanitizedHtmlString.FromStringId(-1032346272));
            writer.Write("\"");
            writer.Write(" L_AM=\"");
            writer.Write(Utilities.SanitizeHtmlEncode(Culture.AMDesignator));
            writer.Write("\"");
            writer.Write(" L_PM=\"");
            writer.Write(Utilities.SanitizeHtmlEncode(Culture.PMDesignator));
            writer.Write("\"");
        }
示例#8
0
 // Token: 0x06002B72 RID: 11122 RVA: 0x000F3DCC File Offset: 0x000F1FCC
 protected void RenderVoiceMailPlayer(TextWriter writer)
 {
     if (this.isUMEnabled && !base.IsEmbeddedItem && base.UserContext.BrowserType == BrowserType.IE && !this.isMacintoshPlatform)
     {
         string text = this.Message.TryGetProperty(MessageItemSchema.RequireProtectedPlayOnPhone) as string;
         if (this.IrmItemHelper.IsRestrictedAndIrmFeatureEnabled && !string.IsNullOrEmpty(text) && text.Equals("true", StringComparison.OrdinalIgnoreCase))
         {
             return;
         }
         using (Attachment latestVoiceMailAttachment = Utilities.GetLatestVoiceMailAttachment(this.Message, base.UserContext))
         {
             if (latestVoiceMailAttachment != null)
             {
                 writer.Write("<object id=oMpf classid=\"clsid:6bf52a52-394a-11d3-b153-00c04f79faa6\" ");
                 writer.Write("type=\"application/x-oleobject\" width=\"212\" height=\"45\">");
                 writer.Write("<param name=\"URL\" value=\"");
                 Utilities.WriteLatestUrlToAttachment(writer, Utilities.GetIdAsString(this.Message), latestVoiceMailAttachment.FileExtension);
                 writer.Write("\">");
                 writer.Write("<param name=\"autoStart\" value=\"false\"><param name=\"EnableContextMenu\" value=\"0\">");
                 writer.Write("<param name=\"InvokeURLs\" value=\"0\"></object>");
             }
             else
             {
                 this.infobar.AddMessage(SanitizedHtmlString.FromStringId(-229902107), InfobarMessageType.Informational);
             }
         }
     }
 }
示例#9
0
 // Token: 0x06002BB5 RID: 11189 RVA: 0x000F45D0 File Offset: 0x000F27D0
 protected void RenderRecurrenceTypeList()
 {
     this.RenderRecurrenceType(OwaRecurrenceType.None, SanitizedHtmlString.FromStringId(1414246128));
     this.RenderRecurrenceType(OwaRecurrenceType.Daily, SanitizedHtmlString.FromStringId(593489113));
     this.RenderRecurrenceType(OwaRecurrenceType.Weekly, SanitizedHtmlString.FromStringId(-1857560235));
     this.RenderRecurrenceType(OwaRecurrenceType.Monthly, SanitizedHtmlString.FromStringId(400181745));
     this.RenderRecurrenceType(OwaRecurrenceType.Yearly, SanitizedHtmlString.FromStringId(-1360160856));
 }
示例#10
0
 protected void RenderWindowTitle()
 {
     if (this.IsInline)
     {
         base.SanitizingResponse.Write(SanitizedHtmlString.FromStringId(-1408141425));
         return;
     }
     base.SanitizingResponse.Write(SanitizedHtmlString.FromStringId(763095470));
 }
示例#11
0
 protected void RenderDialogTitle()
 {
     if (this.IsInline)
     {
         base.SanitizingResponse.Write(SanitizedHtmlString.FromStringId(-553630704));
         return;
     }
     base.SanitizingResponse.Write(SanitizedHtmlString.FromStringId(-1551177844));
 }
示例#12
0
 protected override void RenderExpandoData(TextWriter writer)
 {
     base.RenderExpandoData(writer);
     writer.Write(" L_None=\"");
     writer.Write(SanitizedHtmlString.FromStringId(1414246128));
     writer.Write("\"");
     writer.Write(" sWkdDtFmt=\"");
     writer.Write(Utilities.SanitizeHtmlEncode(this.sessionContext.GetWeekdayDateFormat(false)));
     writer.Write("\"");
 }
示例#13
0
        protected override void RenderSelectedValue(TextWriter writer)
        {
            UserContext userContext = UserContextManager.GetUserContext();

            if (this.selectedDate == ExDateTime.MinValue)
            {
                writer.Write(SanitizedHtmlString.FromStringId(1414246128));
                return;
            }
            writer.Write(this.selectedDate.ToString(userContext.UserOptions.GetWeekdayDateFormat(false)), writer);
        }
 protected override void RenderOpenCalendarToolbar(TextWriter writer)
 {
     if (!this.CalendarItemBase.IsCancelled)
     {
         base.RenderOpenCalendarToolbar(writer);
         return;
     }
     writer.Write("<div id=\"divWhenL\" class=\"roWellLabel pvwLabel\">");
     writer.Write(SanitizedHtmlString.FromStringId(-524211323));
     writer.Write("</div>");
 }
示例#15
0
        internal static InfobarMessage BuildCancellationPrompt(CalendarItemBase calendarItemBase, UserContext userContext)
        {
            bool flag  = calendarItemBase.CalendarItemType != CalendarItemType.Single;
            bool flag2 = calendarItemBase.IsMeeting && calendarItemBase.MeetingRequestWasSent;

            if (!flag && !flag2)
            {
                throw new ArgumentException("The input calendarItemBase doesn't need a cancellation prompt.");
            }
            SanitizedHtmlString bodyHtml = null;
            SanitizedHtmlString messageHtml;

            if (flag)
            {
                if (calendarItemBase.IsMeeting)
                {
                    messageHtml = SanitizedHtmlString.FromStringId(-2063563644);
                }
                else
                {
                    messageHtml = SanitizedHtmlString.FromStringId(78467316);
                }
                CalendarModuleViewState calendarModuleViewState = userContext.LastClientViewState as CalendarModuleViewState;
                ExDateTime cancelFromDate;
                if (calendarModuleViewState != null)
                {
                    cancelFromDate = calendarModuleViewState.DateTime;
                }
                else
                {
                    cancelFromDate = DateTimeUtilities.GetLocalTime();
                }
                bodyHtml = EditCalendarItemHelper.BuildCancelRecurringTable(calendarItemBase.CalendarItemType, cancelFromDate);
            }
            else
            {
                messageHtml = SanitizedHtmlString.FromStringId(-240976491);
            }
            SanitizedHtmlString footerHtml;

            if (!calendarItemBase.IsMeeting)
            {
                footerHtml = SanitizedHtmlString.FromStringId(2058056132);
            }
            else if (!calendarItemBase.MeetingRequestWasSent)
            {
                footerHtml = SanitizedHtmlString.FromStringId(2133761911);
            }
            else
            {
                footerHtml = SanitizedHtmlString.FromStringId(-1210628592);
            }
            return(InfobarMessage.CreatePromptHtml(messageHtml, bodyHtml, footerHtml));
        }
        // 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);
            }
        }
示例#17
0
 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);
         }
     }
 }
示例#18
0
 private void RenderTitleMenuItem(TextWriter writer, Strings.IDs title, Strings.IDs?caption)
 {
     writer.Write("<div class=\"vwMnTtl\">");
     writer.Write(SanitizedHtmlString.FromStringId(title));
     writer.Write("</div>");
     if (caption != null)
     {
         writer.Write("<div class=\"vwMnCap\">");
         writer.Write(SanitizedHtmlString.FromStringId(caption.Value));
         writer.Write("</div>");
     }
 }
示例#19
0
 public virtual void RenderLocation(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.Write("<td class=\"hdmsb\">");
     writer.Write(SanitizedHtmlString.FromStringId(-1134349396));
     writer.Write("</td><td class=\"hdmtxt\"><span>");
     writer.Write(this.Location);
     writer.Write("</span></td>");
 }
示例#20
0
 private void RenderTodayButtons(TextWriter output, Calendar calendar, DateTime today)
 {
     if (Utilities.IsFlagSet(this.features, 4) || Utilities.IsFlagSet(this.features, 8))
     {
         output.Write("<div class=\"btnDay\">");
         bool flag = Utilities.IsFlagSet(this.features, 4) && Utilities.IsFlagSet(this.features, 8);
         if (Utilities.IsFlagSet(this.features, 4))
         {
             output.Write("<div id=\"divToday\"");
             output.Write(" y=");
             output.Write(calendar.GetYear(today));
             output.Write(" m=");
             output.Write(calendar.GetMonth(today));
             output.Write(" d=");
             output.Write(calendar.GetDayOfMonth(today));
             output.Write(" class=\"dpBtn ");
             if (!flag)
             {
                 output.Write("dpOneBtn");
             }
             else
             {
                 output.Write("dpTodayBtn");
             }
             output.Write("\">");
             output.Write("<span class=\"dpTodayLh\">");
             output.Write(SanitizedHtmlString.FromStringId(-367521373));
             output.Write("</span>");
             output.Write("</div>");
         }
         if (Utilities.IsFlagSet(this.features, 8))
         {
             output.Write("<div id=\"divNone\" class=\"dpBtn ");
             if (!flag)
             {
                 output.Write("dpOneBtn");
             }
             else
             {
                 output.Write("dpNoneBtn");
             }
             output.Write("\">");
             output.Write("<span class=\"vaM\">");
             output.Write(SanitizedHtmlString.FromStringId(1414246128));
             output.Write("</span>");
             output.Write("</div>");
         }
         output.Write("</div>");
     }
 }
示例#21
0
        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);
            }
        }
示例#22
0
 // Token: 0x0600259C RID: 9628 RVA: 0x000D99F4 File Offset: 0x000D7BF4
 public void RenderSharingSetting(TextWriter writer, bool isReadonly)
 {
     if (this.sharingMessage.IsDraft && (this.sharingMessage.SharingMessageType == SharingMessageType.AcceptOfRequest || this.sharingMessage.SharingMessageType.IsInvitationOrRequest))
     {
         writer.Write("<div>");
         this.RenderSettingsStart(writer, isReadonly, "divShareSetting", 14478983, ThemeFileId.ExchangeCalendar);
         bool isReadOnly = isReadonly || this.sharingMessage.SharingMessageType == SharingMessageType.Request;
         if (this.sharingMessage.IsSharedFolderPrimary)
         {
             this.RenderSharingOptionItem(writer, isReadOnly, "optFb", SharingLevel.FreeBusy, 1482647983);
             this.RenderSharingOptionItem(writer, isReadOnly, "optLimited", SharingLevel.Limited, 535805963);
             this.RenderSharingOptionItem(writer, isReadOnly, "optDetailsReviewer", SharingLevel.FullDetailsReviewer, 1827193016);
         }
         else
         {
             this.RenderSharingOptionItem(writer, isReadOnly, "optDetailsReviewer", SharingLevel.FullDetailsReviewer, 1827193016);
             this.RenderSharingOptionItem(writer, isReadOnly, "optDetailsEditor", SharingLevel.FullDetailsEditor, -2146599836);
             string value = (this.shareLevel == SharingLevel.FullDetailsEditor && !isReadonly) ? "shareEditorNote" : "shareEditorNote grayTxt";
             writer.Write("<div id=\"divShareEditorNote\" class=\"");
             writer.Write(value);
             writer.Write("\">");
             writer.Write(SanitizedHtmlString.FromStringId(75400189));
             writer.Write("</div>");
         }
         if (this.sharingMessage.IsSharedFolderPrimary && this.sharingMessage.SharingMessageType.IsInvitationOrRequest)
         {
             writer.Write("<div class=\"shareRequestOption\">");
             writer.Write("<input type=\"checkbox\" id=\"chkReqPerm\"");
             if (this.sharingMessage.SharingMessageType.IsRequest)
             {
                 writer.Write(" checked");
             }
             if (isReadonly)
             {
                 writer.Write(" disabled");
             }
             writer.Write("><label");
             if (isReadonly)
             {
                 writer.Write(" class=\"grayTxt\"");
             }
             writer.Write(" for=\"chkReqPerm\">");
             writer.Write(SanitizedHtmlString.FromStringId(1703875658));
             writer.Write("</label>");
             writer.Write("</div>");
         }
         writer.Write("</div>");
         this.RenderSettingsEnd(writer);
     }
 }
 // Token: 0x06002561 RID: 9569 RVA: 0x000D8480 File Offset: 0x000D6680
 protected override void RenderSelectedValue(TextWriter writer)
 {
     for (int i = 0; i < ReminderDropDownList.reminderTimes.Length; i++)
     {
         ReminderDropDownList.ReminderTime reminderTime = ReminderDropDownList.reminderTimes[i];
         if (this.reminderTime == ReminderDropDownList.reminderTimes[i].Time)
         {
             writer.Write(SanitizedHtmlString.FromStringId(ReminderDropDownList.reminderTimes[i].Display));
             return;
         }
     }
     this.isStockTime = false;
     writer.Write(DateTimeUtilities.FormatDuration((int)this.reminderTime));
 }
示例#24
0
 // Token: 0x060022CC RID: 8908 RVA: 0x000C71E4 File Offset: 0x000C53E4
 public static void AddNoEditPermissionWarning(Infobar infobar, Item item, bool isPreviewForm)
 {
     if (infobar == null)
     {
         throw new ArgumentNullException("infobar");
     }
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     if ((Utilities.IsPublic(item) || Utilities.IsOtherMailbox(item)) && !isPreviewForm && !ItemUtility.UserCanEditItem(item))
     {
         infobar.AddMessage(SanitizedHtmlString.FromStringId(2078257811), InfobarMessageType.Informational);
     }
 }
 // Token: 0x06001EBC RID: 7868 RVA: 0x000B12C0 File Offset: 0x000AF4C0
 public virtual void RenderLocation(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.Write("<div id=\"divMtgTbWhere\">");
     writer.Write("<div id=\"divLocationL\" class=\"roWellLabel pvwLabel");
     writer.Write("\">");
     writer.Write(SanitizedHtmlString.FromStringId(1666265192));
     writer.Write("</div><div id=\"divLoc\">");
     writer.Write(this.Location);
     writer.Write("</div>");
     writer.Write("</div>");
 }
 // Token: 0x06002AF1 RID: 10993 RVA: 0x000F1D5C File Offset: 0x000EFF5C
 protected void RenderEncryptedMessageIcon(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.Write("<span id=\"spEn\" style=\"display:none\">");
     base.UserContext.RenderThemeImage(writer, ThemeFileId.Encrypted, null, new object[]
     {
         "id=\"imgEn\"",
         "title=\"",
         SanitizedHtmlString.FromStringId(1362348905),
         "\""
     });
     writer.Write("</span>");
 }
        // Token: 0x0600281A RID: 10266 RVA: 0x000E3098 File Offset: 0x000E1298
        private void InitializeMeetingResponse()
        {
            MeetingResponse meetingResponse = (MeetingResponse)base.Item;

            this.responseType = meetingResponse.ResponseType;
            string queryStringParameter = Utilities.GetQueryStringParameter(base.Request, "mid", false);

            if (queryStringParameter != null)
            {
                this.meetingRequestId = OwaStoreObjectId.CreateFromString(queryStringParameter);
            }
            this.isMeetingInviteInDeleteItems = (Utilities.GetQueryStringParameter(base.Request, "d", false) != null);
            this.infobar.AddMessage(SanitizedHtmlString.FromStringId(-1981719796), InfobarMessageType.Informational);
            string format = string.Empty;

            switch (this.responseType)
            {
            case ResponseType.Tentative:
                format = LocalizedStrings.GetHtmlEncoded(-588720585);
                break;

            case ResponseType.Accept:
                format = LocalizedStrings.GetHtmlEncoded(-14610226);
                break;

            case ResponseType.Decline:
                format = LocalizedStrings.GetHtmlEncoded(-1615218790);
                break;
            }
            SanitizedHtmlString messageHtml;

            if (this.isSendOnBehalfOf)
            {
                messageHtml = SanitizedHtmlString.Format(format, new object[]
                {
                    meetingResponse.From.DisplayName
                });
            }
            else
            {
                messageHtml = SanitizedHtmlString.Format(format, new object[]
                {
                    LocalizedStrings.GetNonEncoded(372029413)
                });
            }
            this.infobar.AddMessage(messageHtml, InfobarMessageType.Informational);
        }
        public static void RenderCancelledMeetingHeader(TextWriter writer, bool isOrganizer, bool isDeleted)
        {
            writer.Write("<div id=\"divMtgInfoHeader\">");
            MeetingInfoHeaderToolbar meetingInfoHeaderToolbar = new MeetingInfoHeaderToolbar();

            meetingInfoHeaderToolbar.Render(writer);
            writer.Write("<div id=\"divMtgHeaderTxt\" class=\"mtgCanceled\">");
            writer.Write(SanitizedHtmlString.FromStringId(-383210701));
            writer.Write("</div>");
            if (!isOrganizer && !isDeleted)
            {
                writer.Write("<div id=\"divMtgCancelLink\">");
                writer.Write(SanitizedHtmlString.FromStringId(-2115983576));
                writer.Write("</div>");
            }
            writer.Write("</div>");
        }
示例#29
0
        protected void RenderDataExpandos()
        {
            MailboxSession   mailboxSession       = (MailboxSession)this.conversationId.GetSession(base.UserContext);
            OwaStoreObjectId deletedItemsFolderId = base.UserContext.GetDeletedItemsFolderId(mailboxSession);

            RenderingUtilities.RenderExpando(base.SanitizingResponse, "sCnvId", this.conversationId.ToString());
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "iMR", (int)base.UserContext.UserOptions.PreviewMarkAsRead);
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "iMRDly", base.UserContext.UserOptions.MarkAsReadDelaytime);
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "fHideDelItems", ConversationUtilities.HideDeletedItems ? 1 : 0);
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "sDeletedItemsId", deletedItemsFolderId.ToString());
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "iGC", ConversationUtilities.GetGlobalCount(this.conversation));
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "iC", this.localItemIds.Count);
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "iSort", (int)base.UserContext.UserOptions.ConversationSortOrder);
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "iMaxItemPrts", Globals.MaxItemsInConversationReadingPane);
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "fIsConversationIgnored", this.IsIgnoredConversation ? 1 : 0);
            string text = string.Format(CultureInfo.InvariantCulture, "<a id=\"aIbBlk\" href=\"#\">{0}</a>", new object[]
            {
                LocalizedStrings.GetHtmlEncoded(469213884)
            });
            string value = string.Format(CultureInfo.InvariantCulture, LocalizedStrings.GetNonEncoded(2063285740), new object[]
            {
                text
            });

            RenderingUtilities.RenderExpando(base.SanitizingResponse, "L_ImgFltBlock", value);
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "L_ImgFltCompBlock", SanitizedHtmlString.FromStringId(-1196115124));
            text = string.Format(CultureInfo.InvariantCulture, "<a id=\"aIbNotSup\" href=\"#\">{0}</a>", new object[]
            {
                LocalizedStrings.GetHtmlEncoded(1099573627)
            });
            value = string.Format(CultureInfo.InvariantCulture, LocalizedStrings.GetNonEncoded(-1170788421), new object[]
            {
                text
            });
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "L_TypeNotSup", value);
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "L_OpnInOlk", SanitizedHtmlString.FromStringId(1305715400));
            text = string.Format(CultureInfo.InvariantCulture, "<a id=\"aIbReadRcp\" href=\"#\">{0}</a>", new object[]
            {
                LocalizedStrings.GetHtmlEncoded(1190033799)
            });
            RenderingUtilities.RenderExpando(base.SanitizingResponse, "L_ReadRcp", SanitizedHtmlString.Format("{0} {1}", new object[]
            {
                SanitizedHtmlString.FromStringId(115261126),
                text
            }));
        }
 // Token: 0x06002AF2 RID: 10994 RVA: 0x000F1DCC File Offset: 0x000EFFCC
 protected void RenderSignatureLine(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.Write("<span id=\"spSigLi\">");
     writer.Write("<span id=\"spSigPro\" style=\"display:none\">");
     writer.Write("<span id=\"spSPI\">");
     writer.Write("<img id=\"imgSVP\" src=\"");
     base.UserContext.RenderThemeFileUrl(writer, ThemeFileId.ProgressSmall);
     writer.Write("\">");
     writer.Write("</span><span id=\"spSPS\">");
     writer.Write(SanitizedHtmlString.FromStringId(-1793529945));
     writer.Write("</span>");
     writer.Write("</span>");
     writer.Write("<span class=\"sl\" id=\"spnSigRes\" style=\"display:none\" onresize=\"rszSl();\"></span>");
     writer.Write("</span>");
 }