Пример #1
0
 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);
     }
 }
Пример #2
0
 public NewXForms.XControl GetXControl()
 {
     if (xcontrol == null)
     {
         xcontrol = CreateXControl();
         foreach (XControl cctl in childs) cctl.GetXControl();
     }
     return xcontrol;
 }
Пример #3
0
 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;
 }