private void Build() { var PanelDatos = new WForms.TableLayoutPanel(); PanelDatos.SuspendLayout(); PanelDatos.ColumnCount = 2; PanelDatos.Dock = WForms.DockStyle.Fill; PanelDatos.ColumnStyles.Add(new WForms.ColumnStyle(WForms.SizeType.Percent, 70F)); PanelDatos.ColumnStyles.Add(new WForms.ColumnStyle(WForms.SizeType.Percent, 30F)); var pnlTable1 = new WForms.TableLayoutPanel(); pnlTable1.SuspendLayout(); pnlTable1.Dock = WForms.DockStyle.Fill; var pnlTable2 = new WForms.TableLayoutPanel(); pnlTable2.SuspendLayout(); pnlTable2.Dock = WForms.DockStyle.Fill; pnlTable1.Controls.Add(BuildMatricula()); pnlTable1.Controls.Add(BuildMarca()); pnlTable1.Controls.Add(BuildModelo()); pnlTable1.Controls.Add(BuildConsumo()); pnlTable1.Controls.Add(BuildFechaFa()); pnlTable1.Controls.Add(BuildFechaAd()); pnlTable1.Controls.Add(BuildYearFiltro()); pnlTable2.Controls.Add(BuildTipo()); pnlTable2.Controls.Add(BuildWIFI()); pnlTable2.Controls.Add(BuildAC()); pnlTable2.Controls.Add(BuildTV()); pnlTable2.Controls.Add(BuildBluetooth()); pnlTable2.Controls.Add(BuildNevera()); pnlTable2.Controls.Add(BuildTipoFiltro()); pnlTable1.Controls.Add(BuildPanelBotones()); pnlTable2.Controls.Add(BuildPanelBotonVolver()); pnlTable1.Controls.Add(BuildPanelBotonesFiltro()); pnlTable2.ResumeLayout(false); pnlTable1.ResumeLayout(false); pnlTable1.MaximumSize = pnlTable1.MinimumSize; pnlTable2.MaximumSize = pnlTable2.MinimumSize; PanelDatos.Controls.Add(pnlTable1, 0, 0); PanelDatos.Controls.Add(pnlTable2, 1, 0); PanelDatos.ResumeLayout(false); Controls.Add(PanelDatos); MinimumSize = new Draw.Size(775, 300); MaximumSize = MinimumSize; }
private void Build() { BuildMenuOpciones(); BuildStatusBar(); SuspendLayout(); MinimumSize = new Draw.Size(800, 700); MaximumSize = MinimumSize; Text = "Gestion de trasportes"; BuildIcono(); }
private void Build() { var pnlTable = new WForms.TableLayoutPanel(); pnlTable.SuspendLayout(); pnlTable.Dock = WForms.DockStyle.Fill; pnlTable.Controls.Add(BuildPanelLista()); pnlTable.Controls.Add(BuildVerTransporte()); pnlTable.ResumeLayout(false); Controls.Add(pnlTable); MinimumSize = new Draw.Size(785, 600); MaximumSize = MinimumSize; grdLista.Height = (int)(Height * 0.40); }
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 void Build() { var PanelDatos = new WForms.TableLayoutPanel(); PanelDatos.SuspendLayout(); PanelDatos.ColumnCount = 2; PanelDatos.Dock = WForms.DockStyle.Fill; PanelDatos.ColumnStyles.Add(new WForms.ColumnStyle(WForms.SizeType.Percent, 50F)); PanelDatos.ColumnStyles.Add(new WForms.ColumnStyle(WForms.SizeType.Percent, 50F)); var pnlTable1 = new WForms.TableLayoutPanel(); pnlTable1.SuspendLayout(); pnlTable1.Dock = WForms.DockStyle.Fill; var pnlTable2 = new WForms.TableLayoutPanel(); pnlTable2.SuspendLayout(); pnlTable2.Dock = WForms.DockStyle.Fill; pnlTable1.Controls.Add(BuildCliente()); pnlTable1.Controls.Add(BuildFlota()); pnlTable1.Controls.Add(BuildFechaContrata()); pnlTable1.Controls.Add(BuildKmsRecorridos()); pnlTable1.Controls.Add(BuildFechaSalida()); pnlTable2.Controls.Add(BuildFechaEntrega()); pnlTable2.Controls.Add(BuildImporteDia()); pnlTable2.Controls.Add(BuildIVA()); pnlTable2.Controls.Add(BuildPrecioLitro()); pnlTable2.Controls.Add(BuildGas()); pnlTable1.Controls.Add(BuildRelleno()); pnlTable2.Controls.Add(BuildRelleno()); pnlTable1.Controls.Add(BuildFiltroYear()); pnlTable2.Controls.Add(BuildFiltroFecha()); pnlTable2.Controls.Add(BuildPanelBotones()); pnlTable1.Controls.Add(BuildPanelBotonesFiltro()); var PanelFactura = new WForms.TableLayoutPanel(); PanelFactura.SuspendLayout(); PanelFactura.ColumnCount = 1; PanelFactura.Dock = WForms.DockStyle.Bottom; PanelFactura.Controls.Add(BuildFactura()); pnlTable2.ResumeLayout(false); pnlTable1.ResumeLayout(false); pnlTable1.MaximumSize = pnlTable1.MinimumSize; pnlTable2.MaximumSize = pnlTable2.MinimumSize; PanelDatos.Controls.Add(pnlTable1, 0, 0); PanelDatos.Controls.Add(pnlTable2, 1, 0); PanelDatos.ResumeLayout(false); PanelFactura.ResumeLayout(false); Controls.Add(PanelDatos); Controls.Add(PanelFactura); MinimumSize = new Draw.Size(775, 330); MaximumSize = MinimumSize; }
private void Build() { var pnlGrafico = new WForms.TableLayoutPanel(); pnlGrafico.SuspendLayout(); pnlGrafico.Dock = WForms.DockStyle.Fill; this.BtGraficoGeneral = new WForms.Button { Text = "Grafico General", Dock = WForms.DockStyle.Top }; this.BtGraficoGeneralPorAnho = new WForms.Button { Text = "Grafico General Por Anho Con el Anho que escojas abajo", Dock = WForms.DockStyle.Top }; this.CbGraficoGPorAnho = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.BtGraficoPorCliente = new WForms.Button { Text = "Gráfico Por Cliente", Dock = WForms.DockStyle.Top }; this.CbGraficoPorCliente = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.BtGraficoPorClientePorAnho = new WForms.Button { Text = "Gráfico Por Cliente Por Anho escogidos en las dos siguientes comboBox", Dock = WForms.DockStyle.Top }; this.CbGraficoPorCliente2 = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.CbGraficoPorClienteAnho = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.BtGraficoPorCamion = new WForms.Button { Text = "Gráfico Por Camión Escogido Debajo", Dock = WForms.DockStyle.Top }; this.CbGraficoPorCamion = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.BtGraficoPorCamionPorAnho = new WForms.Button { Text = "Gráfico Por Camión y Por Anho Escogidos en los dos siguientes comboboxes", Dock = WForms.DockStyle.Top }; this.CbGraficoPorCamion2 = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.CbGraficoPorCamionAnho = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; this.BtGraficoComodidadPorCamion = new WForms.Button { Text = "Gráfico Comodidad Por Camión", Dock = WForms.DockStyle.Top }; this.CbGraficoPorComodidad = new WForms.ComboBox { Dock = WForms.DockStyle.Fill, DropDownStyle = WForms.ComboBoxStyle.DropDownList }; pnlGrafico.Controls.Add(BtGraficoGeneral); pnlGrafico.Controls.Add(BtGraficoGeneralPorAnho); pnlGrafico.Controls.Add(CbGraficoGPorAnho); pnlGrafico.Controls.Add(BtGraficoPorCliente); pnlGrafico.Controls.Add(CbGraficoPorCliente); pnlGrafico.Controls.Add(BtGraficoPorClientePorAnho); pnlGrafico.Controls.Add(CbGraficoPorCliente2); pnlGrafico.Controls.Add(CbGraficoPorClienteAnho); pnlGrafico.Controls.Add(BtGraficoPorCamion); pnlGrafico.Controls.Add(CbGraficoPorCamion); pnlGrafico.Controls.Add(BtGraficoPorCamionPorAnho); pnlGrafico.Controls.Add(CbGraficoPorCamion2); pnlGrafico.Controls.Add(CbGraficoPorCamionAnho); pnlGrafico.Controls.Add(BtGraficoComodidadPorCamion); pnlGrafico.Controls.Add(CbGraficoPorComodidad); pnlGrafico.ResumeLayout(false); Controls.Add(pnlGrafico); MinimumSize = new Draw.Size(780, 600); MaximumSize = MinimumSize; }