Exemple #1
0
 // Token: 0x060022A1 RID: 8865 RVA: 0x000C625C File Offset: 0x000C445C
 public static void RenderMessage(TextWriter output, InfobarMessageType messageType, SanitizedHtmlString messageHtml, string messageId, bool hideMessage, ISessionContext sessionContext)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     if (messageHtml == null)
     {
         throw new ArgumentNullException("messageHtml");
     }
     Infobar.RenderMessageIdAndClass(output, messageType, messageId, sessionContext);
     output.Write("\"");
     if (hideMessage)
     {
         output.Write(" style=\"display:none\" ");
         output.Write("isVisible");
         output.Write("=0");
     }
     else
     {
         output.Write(" ");
         output.Write("isVisible");
         output.Write("=1");
     }
     output.Write(">");
     output.Write(sessionContext.IsRtl ? "<div class=\"fltRight\">" : "<div class=\"fltLeft\">");
     sessionContext.RenderThemeImage(output, ThemeFileId.Dash, sessionContext.IsRtl ? "rtl dashImg" : "dashImg", new object[]
     {
         "id=imgDash"
     });
     output.Write("</div>");
     output.Write(messageHtml);
     output.Write("</div>");
 }
Exemple #2
0
        // Token: 0x060022A6 RID: 8870 RVA: 0x000C6550 File Offset: 0x000C4750
        public static void RenderExpandingMessage(TextWriter output, InfobarMessageType messageType, SanitizedHtmlString message, string messageId, SanitizedHtmlString linkText, SanitizedHtmlString expandSection, ISessionContext sessionContext, bool isVerticalSpaceRequired)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }
            if (linkText == null)
            {
                throw new ArgumentNullException("linkText");
            }
            if (expandSection == null)
            {
                throw new ArgumentNullException("expandSection");
            }
            if (sessionContext == null)
            {
                throw new ArgumentNullException("sessionContext");
            }
            Infobar.RenderMessageIdAndClass(output, messageType, messageId, sessionContext);
            if (isVerticalSpaceRequired)
            {
                output.Write(" vsp");
            }
            output.Write("\">");
            string styleClass = sessionContext.IsRtl ? "rtl dashImg" : "dashImg";

            sessionContext.RenderThemeImage(output, ThemeFileId.Dash, styleClass, new object[]
            {
                "id=imgDash"
            });
            if (messageType == InfobarMessageType.ExpandingError)
            {
                output.Write("<span class=\"ibM\">");
            }
            output.Write(message);
            if (messageType == InfobarMessageType.ExpandingError)
            {
                output.Write("</span>");
            }
            output.Write("<span id=spnIbL ");
            Utilities.RenderScriptHandler(output, "onclick", "tglInfo(_this);");
            output.Write(">");
            output.Write(linkText);
            sessionContext.RenderThemeImage(output, ThemeFileId.Expand, null, new object[]
            {
                "id=imgExp"
            });
            output.Write("</span>");
            output.Write("<div id=divIbE ");
            Utilities.RenderScriptHandler(output, "onclick", "canEvt(event);");
            output.Write(" style=\"display:none\">");
            output.Write(expandSection);
            output.Write("</div></div>");
        }