Inheritance: BoxComponentBase, IIcon, IAutoPostBack, IPostBackEventHandler, IXPostBackDataHandler, IButtonControl, INoneContentable
Exemple #1
0
        public string BuildButton(ButtonBase button)
        {
            this.AddIcon(button.Icon);

            object[] args = new object[7];
            args[0] = button.EnableToggle && button.Pressed ? pressed : "";
            args[1] = button.IconCls.IsNotEmpty() ? textIcon : "";
            args[2] = button.Disabled ? disabled : "";
            args[3] = button.Text;
            args[4] = button.IconCls;
            args[5] = this.GetIconStyleBlock();
            args[6] = button.StyleSpec;

            return string.Format(buttonTemplate, args);
        }
Exemple #2
0
 public virtual ButtonsCollectionBuilder <TParent, TParentBuilder> Add(ButtonBase button)
 {
     this.Owner.Buttons.Add(button);
     return(this);
 }