Ext.Net.ButtonDesigner.BuildButton C# (CSharp) Method

BuildButton() private method

private BuildButton ( ButtonBase button ) : string
button ButtonBase
return string
        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);
        }