protected XControl(XControl parent, Rectangle bounds, string caption, bool visible) { this.parent = parent; this.bounds = bounds; this.caption = caption; this.visible = visible; if (parent != null) { parent.children.Add(this); } }
public NewXForms.XControl GetXControl() { if (xcontrol == null) { xcontrol = CreateXControl(); foreach (XControl cctl in childs) cctl.GetXControl(); } return xcontrol; }
public XSimpleControl(XControl parent, Rectangle bounds, string caption, bool visible, Type type, string elementName) : base(parent,bounds,caption,visible) { if (!type.IsSubclassOf(typeof(Control))) throw new ArgumentException("'type' must be subclass of Control","type"); this.type = type; this.elementName = elementName; }