private WForms.Panel BuildFactura() { var toret = new WForms.Panel(); EdFactura = new WForms.TextBox { Dock = WForms.DockStyle.Left, Width = 765, TextAlign = WForms.HorizontalAlignment.Left, Multiline = true, ScrollBars = WForms.ScrollBars.Vertical }; EdFactura.Enabled = false; var lbFactura = new WForms.Label { Text = "FACTURA", Dock = WForms.DockStyle.Top }; toret.Controls.Add(EdFactura); toret.Controls.Add(lbFactura); toret.Dock = WForms.DockStyle.Top; return(toret); }
private WForms.Panel BuildFlota() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Matrícula" }); EdFlota = new WForms.TextBox { Dock = WForms.DockStyle.Right, Width = (int)(Width * 0.87), SelectionLength = 0, ReadOnly = true }; BtSelecVehiculo = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Seleccionar" }; toret.Controls.Add(EdFlota); toret.Controls.Add(BtSelecVehiculo); toret.MaximumSize = new Draw.Size(int.MaxValue, EdFlota.Height); return(toret); }
private WForms.Panel BuildTexto() { pnlDetalle = new WForms.Panel { Dock = WForms.DockStyle.Bottom }; pnlDetalle.SuspendLayout(); EdInferior = new WForms.TextBox { Dock = WForms.DockStyle.Fill, Multiline = true, ReadOnly = true, Font = new Draw.Font(Draw.FontFamily.GenericMonospace, 10), ForeColor = Draw.Color.Navy, BackColor = Draw.Color.LightGray }; pnlDetalle.Controls.Add(EdInferior); pnlDetalle.ResumeLayout(false); return(pnlDetalle); }
private WForms.Panel BuildModelo() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Modelo" }); EdModelo = new WForms.TextBox { Dock = WForms.DockStyle.Right, Width = (int)(Width * 0.80), TextAlign = WForms.HorizontalAlignment.Right }; toret.Controls.Add(EdModelo); toret.MaximumSize = new Draw.Size(int.MaxValue, EdModelo.Height); return(toret); }