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); }
public virtual ButtonsCollectionBuilder <TParent, TParentBuilder> Add(ButtonBase button) { this.Owner.Buttons.Add(button); return(this); }