예제 #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));
 }