Ejemplo n.º 1
0
 private void InternalRenderMenu(ToolbarButton button, ToolbarButtonFlags flags, Toolbar.RenderMenuItems renderMenuItems)
 {
     if ((flags & ToolbarButtonFlags.Menu) != ToolbarButtonFlags.None)
     {
         this.writer.Write("<div id=\"tbl");
         this.writer.Write(button.Command);
         this.writer.Write("Mnu\" class=\"subMenu\" style=\"display:none;\">");
         renderMenuItems();
         RenderingUtilities.RenderDropShadows(this.writer, this.sessionContext);
         this.writer.Write("</div>");
     }
 }
Ejemplo n.º 2
0
 public void Render(TextWriter output, UserContext userContext)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     output.Write("<div id=divAbm class=ctxMnu style=display:none>");
     this.RenderMenuItems(output, userContext);
     RenderingUtilities.RenderDropShadows(output, userContext);
     output.Write("</div>");
 }
Ejemplo n.º 3
0
 // Token: 0x06001D08 RID: 7432 RVA: 0x000A72CC File Offset: 0x000A54CC
 public void Render(TextWriter output)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     output.Write("<div id=");
     output.Write(this.id);
     output.Write(" class=\"ctxMnu");
     if (this.hasImages)
     {
         output.Write(" ctxMnuIco");
     }
     if (this.shouldScroll)
     {
         output.Write(" ctxMnuScrl");
     }
     if (!string.IsNullOrEmpty(this.className))
     {
         output.Write(" ");
         output.Write(this.className);
     }
     output.Write("\"");
     if (this.shouldScroll)
     {
         output.Write(" fScrl=1");
     }
     this.RenderExpandoData(output);
     output.Write(" style=display:none>");
     if (this.HasShadedColumn)
     {
         output.Write("<div id=\"cmpane\"></div>");
     }
     this.RenderMenuItems(output);
     if (!this.shouldScroll)
     {
         RenderingUtilities.RenderDropShadows(output, this.userContext);
     }
     output.Write("</div>");
 }
Ejemplo n.º 4
0
        protected void RenderButton(ToolbarButton button, ToolbarButtonFlags flags, Toolbar.RenderMenuItems renderMenuItems, SanitizedHtmlString addtionalMarkup)
        {
            if (button == null)
            {
                throw new ArgumentNullException("button");
            }
            flags |= button.Flags;
            bool flag                   = ToolbarButtonFlags.None != (flags & ToolbarButtonFlags.BigSize);
            bool isDisabled             = ToolbarButtonFlags.None != (flags & ToolbarButtonFlags.Disabled);
            bool flag2                  = ToolbarButtonFlags.None != (flags & ToolbarButtonFlags.AlwaysPressed);
            bool isPressed              = flag2 || ToolbarButtonFlags.None != (flags & ToolbarButtonFlags.Pressed);
            bool isComboMenu            = ToolbarButtonFlags.None != (flags & ToolbarButtonFlags.ComboMenu);
            bool flag3                  = ToolbarButtonFlags.None != (flags & ToolbarButtonFlags.ComboDropDown);
            bool flag4                  = ToolbarButtonFlags.None != (flags & ToolbarButtonFlags.NoAction);
            bool renderBigButtonWrapper = this.HasBigButton && (!flag3 || !flag);
            bool hasDropdown            = (flags & ToolbarButtonFlags.Menu) != ToolbarButtonFlags.None || ((flags & ToolbarButtonFlags.CustomMenu) != ToolbarButtonFlags.None && ToolbarButtonFlags.None == (flags & ToolbarButtonFlags.ComboMenu));
            bool isShareButton          = false;

            if (button.TextId == 2009299861 || button.TextId == -1011044205 || button.TextId == -1230529569 || button.TextId == -142048603)
            {
                isShareButton = true;
            }
            this.InternalRenderButtonStart(button, flags, renderMenuItems, flag, isDisabled, isPressed, flag3, flag4, renderBigButtonWrapper, isComboMenu, hasDropdown, isShareButton);
            if (!flag4)
            {
                this.InternalRenderLinkStart(button, flags, flag2, isPressed, flag3, renderBigButtonWrapper);
            }
            this.InternalRenderButtonBody(button, flags, addtionalMarkup, flag, flag3, hasDropdown);
            if (!flag4)
            {
                this.InternalRenderLinkEnd();
            }
            if ((flags & ToolbarButtonFlags.Radio) != ToolbarButtonFlags.None)
            {
                RenderingUtilities.RenderDropShadows(this.writer, this.sessionContext);
            }
            this.InternalRenderMenu(button, flags, renderMenuItems);
            this.InternalRenderButtonEnd(button, flags, renderMenuItems, flag, renderBigButtonWrapper, isComboMenu);
        }