public void AgregarCampo(string label, Lui.Forms.EditableControl control) { Lui.Forms.Label Lbl = new Lui.Forms.Label(); Lbl.AutoSize = false; Lbl.Text = label; Lbl.Tag = control; Lbl.UseMnemonic = false; Lbl.Height = control.Height; Lbl.TextAlign = ContentAlignment.TopLeft; Lbl.AutoEllipsis = true; this.FieldContainer.Controls.Add(Lbl); this.FieldContainer.Controls.Add(control); Lbl.Anchor = AnchorStyles.Left | AnchorStyles.Top; control.Anchor = AnchorStyles.Left | AnchorStyles.Top; this.Campos.Add(new Campo(control, Lbl)); this.ReLayout(); }
public Campo(Lui.Forms.EditableControl control, Lui.Forms.Label etiqueta) { this.ControlEntrada = control; this.Etiqueta = etiqueta; }