Exemple #1
0
        // Token: 0x06002BB8 RID: 11192 RVA: 0x000F47AC File Offset: 0x000F29AC
        private static SanitizedHtmlString BuildMonthDropdownList()
        {
            string[]           monthNames = CultureInfo.CurrentCulture.DateTimeFormat.MonthNames;
            DropDownListItem[] listItems  = new DropDownListItem[]
            {
                new DropDownListItem("1", monthNames[0]),
                new DropDownListItem("2", monthNames[1]),
                new DropDownListItem("3", monthNames[2]),
                new DropDownListItem("4", monthNames[3]),
                new DropDownListItem("5", monthNames[4]),
                new DropDownListItem("6", monthNames[5]),
                new DropDownListItem("7", monthNames[6]),
                new DropDownListItem("8", monthNames[7]),
                new DropDownListItem("9", monthNames[8]),
                new DropDownListItem("10", monthNames[9]),
                new DropDownListItem("11", monthNames[10]),
                new DropDownListItem("12", monthNames[11])
            };
            SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>();

            sanitizingStringWriter.Write("</div><div class=\"fltBefore rcrDropdown recurrenceDialogText\">");
            DropDownList.RenderDropDownList(sanitizingStringWriter, "divMLst", "1", listItems);
            sanitizingStringWriter.Write("</div><div class=\"fltBefore recurrenceDialogText\" id=\"divRcrDayInput\">");
            sanitizingStringWriter.Close();
            return(sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>());
        }
        private SanitizedHtmlString GetBusyTypeHtml(BusyType busyType)
        {
            SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>();

            switch (busyType)
            {
            case BusyType.Free:
                this.sessionContext.RenderThemeImage(sanitizingStringWriter, ThemeFileId.Available, "free", new object[0]);
                sanitizingStringWriter.Write(LocalizedStrings.GetNonEncoded(-971703552));
                goto IL_DC;

            case BusyType.Busy:
                this.sessionContext.RenderThemeImage(sanitizingStringWriter, ThemeFileId.Busy, "busy", new object[0]);
                sanitizingStringWriter.Write(LocalizedStrings.GetNonEncoded(2052801377));
                goto IL_DC;

            case BusyType.OOF:
                this.sessionContext.RenderThemeImage(sanitizingStringWriter, ThemeFileId.OutOfOffice, "oof", new object[0]);
                sanitizingStringWriter.Write(LocalizedStrings.GetNonEncoded(2047193656));
                goto IL_DC;
            }
            this.sessionContext.RenderThemeImage(sanitizingStringWriter, ThemeFileId.Tentative, "tntv", new object[0]);
            sanitizingStringWriter.Write(LocalizedStrings.GetNonEncoded(1797669216));
IL_DC:
            return(sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>());
        }
Exemple #3
0
        // Token: 0x06002BB7 RID: 11191 RVA: 0x000F4688 File Offset: 0x000F2888
        private static SanitizedHtmlString BuildDayDropdownList(DaysOfWeek daysOfWeek)
        {
            string[]           dayNames  = CultureInfo.CurrentCulture.DateTimeFormat.DayNames;
            DropDownListItem[] listItems = new DropDownListItem[]
            {
                new DropDownListItem(127, 696030412),
                new DropDownListItem(62, 394490012),
                new DropDownListItem(65, 1137128015),
                new DropDownListItem(1, dayNames[0]),
                new DropDownListItem(2, dayNames[1]),
                new DropDownListItem(4, dayNames[2]),
                new DropDownListItem(8, dayNames[3]),
                new DropDownListItem(16, dayNames[4]),
                new DropDownListItem(32, dayNames[5]),
                new DropDownListItem(64, dayNames[6])
            };
            SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>();

            sanitizingStringWriter.Write("</div><div class=\"fltBefore rcrDropdown recurrenceDialogText\">");
            TextWriter writer = sanitizingStringWriter;
            string     id     = "divDLst";
            int        num    = (int)daysOfWeek;

            DropDownList.RenderDropDownList(writer, id, num.ToString(CultureInfo.InvariantCulture), listItems);
            sanitizingStringWriter.Write("</div><div class=\"fltBefore recurrenceDialogText\">");
            sanitizingStringWriter.Close();
            return(sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>());
        }
Exemple #4
0
        private static SanitizedHtmlString BuildCancelRecurringTable(CalendarItemType type, ExDateTime cancelFromDate)
        {
            SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>("<table class=\"caltm\" cellpadding=\"0\" cellspacing=\"0\">");

            if (type == CalendarItemType.Single)
            {
                throw new ArgumentException("Unhandled calendar item type.");
            }
            bool flag = true;

            if (type == CalendarItemType.Exception || type == CalendarItemType.Occurrence)
            {
                sanitizingStringBuilder.Append("<tr><td class=\"rb\"><input class=\"rb\" type=\"radio\" name=\"delprompt\" checked=\"checked\" id=\"delocc\" value=\"0\" />\n<label class=\"lb\" for=\"delocc\">");
                sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(-673339501));
                sanitizingStringBuilder.Append("</label></td></tr>");
                flag = false;
            }
            sanitizingStringBuilder.Append("<tr><td><input class=\"rb\" type=\"radio\" name=\"delprompt\" ");
            sanitizingStringBuilder.Append(flag ? "checked " : string.Empty);
            sanitizingStringBuilder.Append("id=\"delfwd\" value=\"1\" />\n<label class=\"lb\" for=\"delfwd\">");
            sanitizingStringBuilder.Append(string.Format(LocalizedStrings.GetNonEncoded(-1062918861), string.Empty));
            sanitizingStringBuilder.Append("</label></td>");
            using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>())
            {
                CalendarUtilities.RenderDateTimeTable(sanitizingStringWriter, "seldel", cancelFromDate, DateTimeUtilities.GetLocalTime().Year, null, string.Empty, "onSelDelTm(this);", null);
                sanitizingStringBuilder.Append("<td>");
                sanitizingStringBuilder.Append <SanitizedHtmlString>(sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>());
                sanitizingStringBuilder.Append("</td></tr>");
            }
            sanitizingStringBuilder.Append("<tr><td><input class=\"rb\" type=\"radio\" name=\"delprompt\" id=\"delall\" value=\"2\" />\n<label class=\"lb\" for=\"delall\">");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1631668395));
            sanitizingStringBuilder.Append("</label></td></tr></table>");
            return(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>());
        }
Exemple #5
0
        // Token: 0x06002BB6 RID: 11190 RVA: 0x000F4634 File Offset: 0x000F2834
        private static SanitizedHtmlString BuildNthDropdownList(int order)
        {
            SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>();

            sanitizingStringWriter.Write("</div><div class=\"fltBefore nthDropdownList recurrenceDialogText\">");
            DropDownList.RenderDropDownList(sanitizingStringWriter, "divNthLst", order.ToString(CultureInfo.InvariantCulture), RecurrenceForm.nThList);
            sanitizingStringWriter.Write("</div><div class=\"fltBefore recurrenceDialogText\">");
            sanitizingStringWriter.Close();
            return(sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>());
        }
Exemple #6
0
        private void RenderNamesArray(string variableName, DatePicker.RenderNames valueOutputDelegate, TextWriter writer)
        {
            writer.Write(" ");
            writer.Write(variableName);
            writer.Write("=\"new Array(");
            StringBuilder stringBuilder = new StringBuilder();
            SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>(stringBuilder);

            valueOutputDelegate(sanitizingStringWriter);
            sanitizingStringWriter.Close();
            writer.Write(Utilities.SanitizeHtmlEncode(stringBuilder.ToString()));
            writer.Write(")\"");
        }
Exemple #7
0
        // Token: 0x06002592 RID: 9618 RVA: 0x000D9780 File Offset: 0x000D7980
        private void BuildIcon(SanitizingStringBuilder <OwaHtml> stringBuilder)
        {
            FolderSharingFlag sharingFlag = FolderSharingFlag.None;

            if (this.isSharedFolder || this.isPublicFolder)
            {
                sharingFlag = FolderSharingFlag.SharedIn;
            }
            else if (this.isSharedOutFolder)
            {
                sharingFlag = FolderSharingFlag.SharedOut;
            }
            using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>())
            {
                SmallIconManager.RenderFolderIcon(sanitizingStringWriter, this.userContext, this.containerClass, sharingFlag, false, new string[0]);
                stringBuilder.Append <SanitizedHtmlString>(sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>());
            }
        }
Exemple #8
0
        private SanitizedHtmlString GetSharedDataString(DailyView view, int viewWidth, CalendarViewType viewType, ReadingPanePosition readingPanePosition, ReadingPanePosition requestReadingPanePosition)
        {
            SanitizedHtmlString result;

            using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>())
            {
                base.RenderValue(sanitizingStringWriter, "sFId", base.SessionContext.CalendarFolderOwaIdString);
                base.RenderValue(sanitizingStringWriter, "sTimeZone", base.SessionContext.TimeZone.Id);
                base.RenderValue(sanitizingStringWriter, "iVT", (int)viewType);
                base.RenderValue(sanitizingStringWriter, "iVW", viewWidth);
                base.RenderValue(sanitizingStringWriter, "iRowH", 24);
                base.RenderValue(sanitizingStringWriter, "iRRP", (int)requestReadingPanePosition);
                base.RenderValue(sanitizingStringWriter, "iNRP", (int)readingPanePosition);
                this.RenderTimeSwoopVariables(sanitizingStringWriter, view);
                sanitizingStringWriter.Write("\"rgDay\":[");
                base.RenderDay(sanitizingStringWriter, view.DateRanges, viewType);
                sanitizingStringWriter.Write("]");
                result = sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>();
            }
            return(result);
        }
 // Token: 0x060006B8 RID: 1720 RVA: 0x00034CAC File Offset: 0x00032EAC
 internal static void RenderSenderOnBehalfOf(Participant representiveSender, Participant originalSender, TextWriter writer, UserContext userContext)
 {
     if (representiveSender == null)
     {
         throw new ArgumentNullException("representiveSender");
     }
     if (originalSender == null)
     {
         throw new ArgumentNullException("originalSender");
     }
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>())
     {
         using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter2 = new SanitizingStringWriter <OwaHtml>())
         {
             RenderingUtilities.RenderSender(userContext, sanitizingStringWriter, representiveSender);
             RenderingUtilities.RenderSender(userContext, sanitizingStringWriter2, originalSender);
             writer.Write(LocalizedStrings.GetHtmlEncoded(-165544498), sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>(), sanitizingStringWriter2.ToSanitizedString <SanitizedHtmlString>());
         }
     }
 }
        // Token: 0x060023ED RID: 9197 RVA: 0x000CF290 File Offset: 0x000CD490
        private SanitizedHtmlString GetSharedDataString(MonthlyView view, ReadingPanePosition requestReadingPanePosition)
        {
            SanitizedHtmlString result;

            using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>())
            {
                base.RenderValue(sanitizingStringWriter, "sFId", base.SessionContext.CalendarFolderOwaIdString);
                base.RenderValue(sanitizingStringWriter, "sTimeZone", base.SessionContext.TimeZone.Id);
                base.RenderValue(sanitizingStringWriter, "iRowH", 20);
                base.RenderValue(sanitizingStringWriter, "iVT", 4);
                base.RenderValue(sanitizingStringWriter, "iVW", 0);
                base.RenderValue(sanitizingStringWriter, "sPrevMonth", view.PreviousMonthName);
                base.RenderValue(sanitizingStringWriter, "sCurrMonth", view.CurrentMonthName);
                base.RenderValue(sanitizingStringWriter, "sNextMonth", view.NextMonthName);
                base.RenderValue(sanitizingStringWriter, "iRRP", (int)requestReadingPanePosition);
                base.RenderValue(sanitizingStringWriter, "iNRP", 0);
                this.RenderWeekNumbers(sanitizingStringWriter, view);
                sanitizingStringWriter.Write("\"rgDay\":[");
                base.RenderDay(sanitizingStringWriter, view.DateRanges, CalendarViewType.Monthly);
                sanitizingStringWriter.Write("]");
                result = sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>();
            }
            return(result);
        }
Exemple #11
0
        // Token: 0x06002FD7 RID: 12247 RVA: 0x001170C4 File Offset: 0x001152C4
        public static void RenderCancelRecurrenceCalendarItemDialog(TextWriter output, bool showCancelOccurrence, bool isMeeting, bool isPermanentDelete, bool showWarningAttendeesWillNotBeNotified)
        {
            output.Write("<div id=\"divCRMsg\" style=\"display:none\" sTtl=\"");
            if (isMeeting)
            {
                output.Write(SanitizedHtmlString.FromStringId(-2063563644));
            }
            else
            {
                output.Write(SanitizedHtmlString.FromStringId(78467316));
            }
            output.Write("\" sOk=\"");
            output.Write(SanitizedHtmlString.FromStringId(2041362128));
            output.Write("\" sCncl=\"");
            output.Write(SanitizedHtmlString.FromStringId(-1936577052));
            output.Write("\">");
            if (showWarningAttendeesWillNotBeNotified)
            {
                output.Write("<div class=\"w\">");
                output.Write(SanitizedHtmlString.FromStringId(-1626455311));
                output.Write("</div>");
            }
            if (showCancelOccurrence)
            {
                output.Write("<div class=\"cancelRcrRow\">");
                output.Write("<div class=\"fltBefore cancelRcrInput\"><input type=\"radio\" name=\"rdoCncl\" id=\"rdoCnclO\"></div>");
                output.Write("<div class=\"fltBefore\"><label for=\"rdoCnclO\">");
                if (isPermanentDelete)
                {
                    output.Write(SanitizedHtmlString.FromStringId(-897929905));
                }
                else
                {
                    output.Write(SanitizedHtmlString.FromStringId(-673339501));
                }
                output.Write("</label></div><div class=\"clear\"></div></div>");
            }
            output.Write("<div class=\"cancelRcrRow\">");
            output.Write("<div class=\"fltBefore cancelRcrInput\"><input type=\"radio\" name=\"rdoCncl\" id=\"rdoCnclD\"></div>");
            output.Write("<div class=\"fltBefore\"><label for=\"rdoCnclD\">");
            StringBuilder stringBuilder = new StringBuilder();

            using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>(stringBuilder))
            {
                sanitizingStringWriter.Write("&nbsp;</label></div><div class=\"fltBefore dtPkerAd\">");
                DatePickerDropDownCombo.RenderDatePicker(sanitizingStringWriter, "divRecurrenceDate", DateTimeUtilities.GetLocalTime());
                sanitizingStringWriter.Write("</div><div class=\"fltBefore\"><label for=\"rdoCnclD\">");
                sanitizingStringWriter.Close();
            }
            if (isPermanentDelete)
            {
                output.Write(SanitizedHtmlString.Format(LocalizedStrings.GetHtmlEncoded(-1487900473), new object[]
                {
                    SanitizedHtmlString.GetSanitizedStringWithoutEncoding(stringBuilder.ToString())
                }));
            }
            else
            {
                output.Write(SanitizedHtmlString.Format(LocalizedStrings.GetHtmlEncoded(-1062918861), new object[]
                {
                    SanitizedHtmlString.GetSanitizedStringWithoutEncoding(stringBuilder.ToString())
                }));
            }
            output.Write("</label></div><div class=\"clear\"></div></div>");
            output.Write("<div class=\"cancelRcrRow\">");
            output.Write("<div class=\"fltBefore cancelRcrInput\"><input type=\"radio\" name=\"rdoCncl\" id=\"rdoCnclA\"></div>");
            output.Write("<div class=\"fltBefore\"><label for=\"rdoCnclA\">");
            if (isPermanentDelete)
            {
                output.Write(SanitizedHtmlString.FromStringId(817420711));
            }
            else
            {
                output.Write(SanitizedHtmlString.FromStringId(1631668395));
            }
            output.Write("</label></div>");
            output.Write("</div>");
        }