示例#1
0
 protected virtual void SetIconClass(Icon icon)
 {
     if (this.Icon != Icon.None)
     {
         this.SetIconClass(ResourceManager.GetIconClassName(icon));
     }
     else
     {
         this.SetIconClass("");
     }
 }
示例#2
0
 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("");
 }
示例#3
0
 protected virtual void SetIcon(Icon icon)
 {
     this.SetIconClass(ResourceManager.GetIconClassName(icon));
 }