Пример #1
0
        public WidgetElement(WidgetElement parent)
        {
            Parent = parent;
            Widget = parent?.Widget ?? parent as Widget ?? this as Widget;

            if (Widget != null)
            {
                ElementId = Widget.NextElementId();
            }
            else
            {
                throw new Exception("Widget Element does not have a parent widget.");
            }
        }
Пример #2
0
 public void AddElement(WidgetElement element)
 {
     Elements.AddLast(element);
 }
Пример #3
0
 public WidgetElementGroup(WidgetElement parent, string title) : base(parent)
 {
     Title    = title;
     Elements = new LinkedList <WidgetElement>();
 }
Пример #4
0
 public TextElement(WidgetElement parent, string label, string text = "") : base(parent)
 {
     Label = label;
     Text  = text;
 }