private WForms.Panel BuildGas() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Gas" }); EdGas = new WForms.NumericUpDown { Dock = WForms.DockStyle.Right, Width = (int)(Width * 1.25), TextAlign = WForms.HorizontalAlignment.Right, Minimum = 0, DecimalPlaces = 2, Value = 0, RightToLeft = WForms.RightToLeft.Inherit }; toret.Controls.Add(EdGas); toret.MaximumSize = new Draw.Size(int.MaxValue, EdGas.Height); return(toret); }
WForms.Panel BuildVar2() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill, }; this.var2Texto = new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Modelo", Width = 300, Height = 300 }; toret.Controls.Add(this.var2Texto); this.var2Texto.Font = new Draw.Font(this.var2Texto.Font.FontFamily, 20f); this.var2valTexto = new WForms.TextBox { Dock = WForms.DockStyle.Fill, TextAlign = WForms.HorizontalAlignment.Right }; this.var2valTexto.Font = new Draw.Font(this.var2valTexto.Font.FontFamily, 20f); toret.Controls.Add(this.var2valTexto); 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 BuildYearFiltro() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Filtrar por año" }); EdYearFiltro = new WForms.NumericUpDown { Dock = WForms.DockStyle.Right, Width = (int)(Width * 1.25), TextAlign = WForms.HorizontalAlignment.Right, Minimum = 2000, Maximum = 2030, Value = 2020, RightToLeft = WForms.RightToLeft.Inherit }; toret.Controls.Add(EdYearFiltro); toret.MaximumSize = new Draw.Size(int.MaxValue, EdYearFiltro.Height); return(toret); }
WForms.Panel BuildRes() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Top }; EdRestexto = new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Precio" }; this.EdRestexto.Font = new Draw.Font(this.EdRestexto.Font.FontFamily, 20f); toret.Controls.Add(this.EdRestexto); this.EdRes = new WForms.TextBox { Dock = WForms.DockStyle.Fill, Text = "0", TextAlign = WForms.HorizontalAlignment.Right, ReadOnly = true }; this.EdRes.Font = new Draw.Font(this.EdRes.Font.FontFamily, 20f); toret.Controls.Add(this.EdRes); return(toret); }
WForms.Panel BuildOp1() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill, }; this.EdOp1texto = new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Tiempo", Width = 150, Height = 150 }; toret.Controls.Add(this.EdOp1texto); this.EdOp1texto.Font = new Draw.Font(this.EdOp1texto.Font.FontFamily, 20f); this.EdOp1 = new WForms.TextBox { Dock = WForms.DockStyle.Fill, Text = "0", TextAlign = WForms.HorizontalAlignment.Right }; this.EdOp1.Font = new Draw.Font(this.EdOp1.Font.FontFamily, 20f); toret.Controls.Add(this.EdOp1); return(toret); }
private WForms.Panel BuildTipoFiltro() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Filtrar por tipo" }); EdTipoFiltro = new WForms.ComboBox { Dock = WForms.DockStyle.Right, Width = (int)(Width * 0.60), RightToLeft = WForms.RightToLeft.Inherit }; object[] tipos = { "No filtrar", "Furgoneta", "Camion", "Camion Articulado" }; EdTipoFiltro.Items.AddRange(tipos); EdTipoFiltro.SelectedItem = "No filtrar"; toret.Controls.Add(EdTipoFiltro); toret.MaximumSize = new Draw.Size(int.MaxValue, EdTipo.Height); return(toret); }
private WForms.Panel BuildKmsRecorridos() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Kms Recorridos" }); EdKmsRecorridos = new WForms.NumericUpDown { Dock = WForms.DockStyle.Right, Width = (int)(Width * 1.25), TextAlign = WForms.HorizontalAlignment.Right, Minimum = 0, Value = 0 }; toret.Controls.Add(EdKmsRecorridos); toret.MaximumSize = new Draw.Size(int.MaxValue, EdKmsRecorridos.Height); return(toret); }
WForms.Panel BuildTelevisor() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Top }; this.pulgadasLabel = new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Pulgadas", Width = 300, Height = 300 }; toret.Controls.Add(this.pulgadasLabel); this.pulgadasLabel.Font = new Draw.Font(this.pulgadasLabel.Font.FontFamily, 20f); this.pulgadasTexto = new WForms.TextBox { Dock = WForms.DockStyle.Fill, TextAlign = WForms.HorizontalAlignment.Right }; this.pulgadasTexto.Font = new Draw.Font(this.pulgadasTexto.Font.FontFamily, 20f); toret.Controls.Add(this.pulgadasTexto); return(toret); }
private WForms.Panel BuildPanelLista() { pnlLista = new WForms.Panel(); pnlLista.SuspendLayout(); pnlLista.Dock = WForms.DockStyle.Fill; // Crear gridview grdLista = new WForms.DataGridView { Dock = WForms.DockStyle.Fill, AllowUserToResizeRows = false, RowHeadersVisible = false, ReadOnly = true, MultiSelect = false, AllowUserToAddRows = false, AllowUserToDeleteRows = false, EnableHeadersVisualStyles = false, SelectionMode = WForms.DataGridViewSelectionMode.FullRowSelect }; grdLista.ColumnHeadersDefaultCellStyle.ForeColor = Draw.Color.Black; grdLista.ColumnHeadersDefaultCellStyle.BackColor = Draw.Color.LightGray; grdLista.AutoSizeColumnsMode = WForms.DataGridViewAutoSizeColumnsMode.Fill; pnlLista.Controls.Add(grdLista); pnlLista.ResumeLayout(false); return(pnlLista); }
private WForms.Panel BuildConsumo() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Consumo L/100Km", Width = Width }); EdConsumo = new WForms.NumericUpDown { Dock = WForms.DockStyle.Right, Width = (int)(Width * 0.40), Value = 4, TextAlign = WForms.HorizontalAlignment.Center, Minimum = 0, Maximum = 40, DecimalPlaces = 1, Increment = 0.1M }; toret.Controls.Add(EdConsumo); toret.MaximumSize = new Draw.Size(int.MaxValue, EdConsumo.Height); return(toret); }
WForms.Panel BuildRadio() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Top }; this.bandas = new WForms.ComboBox { Dock = WForms.DockStyle.Left, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.bandas.Items.AddRange(new [] { "mf", "sf" }); this.bandas.Text = (string)this.bandas.Items[0]; this.bandas.Font = new Draw.Font(this.bandas.Font.FontFamily, 20f); toret.Controls.Add(this.bandas); toret.MaximumSize = new Draw.Size(int.MaxValue, this.bandas.Height); this.bandasLabel = new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Bandas", Width = 300, Height = 300 }; this.bandasLabel.Font = new Draw.Font(this.bandasLabel.Font.FontFamily, 20f); toret.Controls.Add(this.bandasLabel); return(toret); }
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); }
public WForms.Panel BuildPanelBotonVolver() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; BtSeleccionar = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Seleccionar" }; BtVolver = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Volver" }; btDisponibles = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Disponibles" }; toret.Controls.Add(btDisponibles); toret.Controls.Add(BtSeleccionar); toret.Controls.Add(BtVolver); toret.Dock = WForms.DockStyle.Top; toret.MaximumSize = new Draw.Size(int.MaxValue, 30); return(toret); }
private WForms.Panel BuildRelleno() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.MaximumSize = new Draw.Size(int.MaxValue, EdGas.Height); return(toret); }
public WForms.Panel BuildPanelBotones() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; BtModificar = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Modificar" }; toret.Controls.Add(BtModificar); BtBorrar = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Borrar" }; toret.Controls.Add(BtBorrar); toret.Dock = WForms.DockStyle.Top; toret.MaximumSize = new Draw.Size(int.MaxValue, 30); BtInsertar = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Insertar" }; toret.Controls.Add(BtInsertar); toret.Controls.Add(BtModificar); BtAceptar = new WForms.Button { Dock = WForms.DockStyle.Right, DialogResult = WForms.DialogResult.OK, Text = "&Aceptar" }; toret.Controls.Add(BtAceptar); toret.Controls.Add(BtModificar); BtCancelar = new WForms.Button { Dock = WForms.DockStyle.Right, DialogResult = WForms.DialogResult.Cancel, Text = "&Cancelar" }; toret.Controls.Add(BtCancelar); toret.Dock = WForms.DockStyle.Top; toret.MaximumSize = new Draw.Size(int.MaxValue, 30); return(toret); }
WForms.Panel BuildReproductorDVD() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Top }; this.tiempoGrabaLabel = new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Tiempo de Grabacion", Width = 300, Height = 300 }; this.tiempoGrabaLabel.Font = new Draw.Font(this.tiempoGrabaLabel.Font.FontFamily, 20f); toret.Controls.Add(this.tiempoGrabaLabel); this.tiempoGrabaTexto = new WForms.TextBox { Dock = WForms.DockStyle.Fill, Text = "0", TextAlign = WForms.HorizontalAlignment.Right, }; this.tiempoGrabaTexto.Font = new Draw.Font(this.tiempoGrabaTexto.Font.FontFamily, 20f); toret.Controls.Add(this.tiempoGrabaTexto); this.bluerayBox = new WForms.ComboBox { Dock = WForms.DockStyle.Left, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.bluerayBox.Items.AddRange(new [] { "si", "no" }); this.bluerayBox.Text = (string)this.bluerayBox.Items[0]; this.bluerayBox.Font = new Draw.Font(this.bluerayBox.Font.FontFamily, 20f); toret.Controls.Add(this.bluerayBox); toret.MaximumSize = new Draw.Size(int.MaxValue, this.bluerayBox.Height); this.bluerayLabel = new WForms.Label { Dock = WForms.DockStyle.Left, Text = "BlueRay", Width = 300, Height = 300 }; this.bluerayLabel.Font = new Draw.Font(this.bluerayLabel.Font.FontFamily, 20f); toret.Controls.Add(this.bluerayLabel); return(toret); }
private void Build() { SuspendLayout(); pnlPpal = new WForms.Panel { Dock = WForms.DockStyle.Fill }; pnlPpal.SuspendLayout(); Controls.Add(pnlPpal); pnlPpal.Controls.Add(BuildPanelLista()); pnlPpal.Controls.Add(BuildTexto()); pnlPpal.ResumeLayout(false); MinimumSize = new Draw.Size(800, 600); MaximumSize = MinimumSize; Text = "Gestión de ejemplo"; ResumeLayout(true); }
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 BuildNevera() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Nevera" }); EdNevera = new WForms.CheckBox { Dock = WForms.DockStyle.Right }; toret.Controls.Add(EdNevera); toret.MaximumSize = new Draw.Size(int.MaxValue, EdNevera.Height / 4); return(toret); }
WForms.Panel BuildOperacion() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Top }; this.CbOperacion = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.CbOperacion.Items.AddRange(new [] { "Televisor", "ReproductorDVD", "AdaptadorTDT", "Radio" }); this.CbOperacion.Text = (string)this.CbOperacion.Items[0]; this.CbOperacion.Font = new Draw.Font(this.CbOperacion.Font.FontFamily, 20f); //Console.Write(this.CbOperacion.Text); toret.Controls.Add(this.CbOperacion); toret.MaximumSize = new Draw.Size(int.MaxValue, this.CbOperacion.Height); return(toret); }
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); }
public WForms.Panel BuildPanelBotonesFiltro() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; //Botones individual_búsquedas BtPendiente = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Pendientes" }; toret.Controls.Add(BtPendiente); BtFiltroYear = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Filtrar año" }; toret.Controls.Add(BtFiltroYear); BtFiltroFecha = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Filtrar fecha" }; toret.Controls.Add(BtFiltroFecha); BtVolver = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Volver" }; toret.Controls.Add(BtVolver); toret.Dock = WForms.DockStyle.Top; toret.MaximumSize = new Draw.Size(int.MaxValue, 30); return(toret); }
private WForms.Panel BuildFechaFa() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Fecha Fabricacion" }); EdFechaFa = new WForms.DateTimePicker { Dock = WForms.DockStyle.Right, Width = (int)(Width * 1.00) }; toret.Controls.Add(EdFechaFa); toret.MaximumSize = new Draw.Size(int.MaxValue, EdFechaFa.Height); return(toret); }
private WForms.Panel BuildFechaAd() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Fecha Adquisicion" }); EdFechaAd = new WForms.DateTimePicker { Dock = WForms.DockStyle.Right, Width = (int)(Width * 1.00), MaxDate = DateTime.Today }; toret.Controls.Add(EdFechaAd); toret.MaximumSize = new Draw.Size(int.MaxValue, EdFechaAd.Height); return(toret); }
public WForms.Panel BuildPanelBotonesFiltro() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; btReservas = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Reservas" }; toret.Controls.Add(btReservas); btReservasYear = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Res/año" }; toret.Controls.Add(btReservasYear); btPendientes = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Pendientes" }; toret.Controls.Add(btPendientes); btSalirFiltrado = new WForms.Button { Dock = WForms.DockStyle.Right, Text = "&Salir filtro" }; toret.Controls.Add(btSalirFiltrado); toret.Dock = WForms.DockStyle.Top; toret.MaximumSize = new Draw.Size(int.MaxValue, 30); return(toret); }
private WForms.Panel BuildFiltroFecha() { var toret = new WForms.Panel { Dock = WForms.DockStyle.Fill }; toret.Controls.Add(new WForms.Label { Dock = WForms.DockStyle.Left, Text = "Filtrar por fecha" }); EdFechaFiltro = new WForms.DateTimePicker { Dock = WForms.DockStyle.Right, Width = (int)(Width * 1.25) }; toret.Controls.Add(EdFechaFiltro); toret.MaximumSize = new Draw.Size(int.MaxValue, EdFechaFiltro.Height); return(toret); }