public ButtonParameters(ButtonIcon icon, ButtonType type, string text, ButtonRole buttonRole, ButtonIconColor buttonIconColor, ButtonHeight buttonHeight, bool enabled, string width, string toolTip = null) { ButtonIcon = icon; Text = text; ButtonRole = buttonRole; ButtonIconColor = buttonIconColor; ButtonHeight = buttonHeight; Type = type; Enabled = enabled; Width = ProcessWidth(width); ToolTip = toolTip; }
public override string ToString() { StringBuilder bulid = new StringBuilder(); bulid.Append("ButtonWidth: " + ButtonWidth.ToString() + "\n"); bulid.Append("ButtonHeight: " + ButtonHeight.ToString() + "\n"); bulid.Append("ToolBarWidth: " + ToolBarWidth.ToString() + "\n"); bulid.Append("ToolBarHeight: " + ToolBarHeight.ToString() + "\n"); bulid.Append("SpaceWidth: " + SpaceWidth.ToString() + "\n"); bulid.Append("SpaceHeight: " + SpaceHeight.ToString() + "\n"); return(bulid.ToString()); }
public ButtonParameters(ButtonIcon icon, ButtonHeight buttonHeight, bool enabled) : this(icon, ButtonType.Image, null, ButtonRole.Default, ButtonIconColor.Black, buttonHeight, enabled, null) { }
public ButtonParameters(ButtonIcon icon, ButtonIconColor iconColor, ButtonRole buttonRole, ButtonHeight buttonHeight) : this(icon, ButtonType.Image, null, buttonRole, iconColor, buttonHeight, true, null) { }
public ButtonParameters Height(ButtonHeight buttonHeight) { ButtonHeight = buttonHeight; return(this); }