示例#1
0
        public static ElementIcon Create(Element element = Element.NONE)
        {
            ElementIcon icon = (ElementIcon)template.Instance();

            icon.Configure(element);
            return(icon);
        }
示例#2
0
 public void SetElements(List <Element> elements)
 {
     this.QueueFreeChildren();
     foreach (Element e in elements)
     {
         AddChild(ElementIcon.Create(e));
     }
 }