protected virtual void SetIconClass(Icon icon) { if (this.Icon != Icon.None) { this.SetIconClass(ResourceManager.GetIconClassName(icon)); } else { this.SetIconClass(""); } }
public virtual string GetIconClass(Icon icon) { if (icon != Icon.None) { return(string.Format(".{0}{{background-image:url({1}) !important;padding-left: 25px !important;background-repeat: no-repeat;background-position: 3px 3px;}}", ResourceManager.GetIconClassName(icon), this.ResourceManager.GetIconUrl(icon))); } return(""); }
protected virtual void SetIcon(Icon icon) { this.SetIconClass(ResourceManager.GetIconClassName(icon)); }