Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }