Beispiel #1
0
        private void OpcionesClick(object sender, EventArgs e)
        {
            Pnl = (Panel)sender;
            bool Cambiar = false;

            if (PMenu.Name.Equals(""))
            {
                Preseleccion(Pnl, EventArgs.Empty);
                PMenu = Pnl;
            }
            else if (PMenu.Name.Equals(Pnl.Name))
            {
                Cambiar = true;
            }
            else
            {
                NoSeleccion(PMenu, EventArgs.Empty);
                Preseleccion(Pnl, EventArgs.Empty);
                PMenu = Pnl;
            }


            if (!Cambiar)
            {
                if (Pnl.Name.Contains("SubEntrada"))
                {
                    Ventana = new OpcionTres(this, PanelGeneral, BLL);
                    Abrir(Ventana);
                }
                else if (Pnl.Name.Contains("SubPaso"))
                {
                    Ventana = new OpcionCuatro(this, PanelGeneral, BLL);
                    Abrir(Ventana);
                }
                else if (Pnl.Name.Contains("SubSalida"))
                {
                    Ventana = new OpcionCinco(this, PanelGeneral, BLL);
                    Abrir(Ventana);
                }
                else if (Pnl.Name.Contains("Entrada"))
                {
                    PnSubMaxRegistros.Hide();
                    Ventana = new OpcionUno(this, PanelGeneral, BLL);
                    Abrir(Ventana);
                }
                else if (Pnl.Name.Contains("Paso"))
                {
                    PnSubMaxRegistros.Hide();
                    Ventana = new OpcionDos(this, PanelGeneral, BLL);
                    Abrir(Ventana);
                }
                else if (Pnl.Name.Contains("Registro"))
                {
                    PnSubMaxRegistros.Show();
                }
            }
        }
Beispiel #2
0
        private void ControlOpcionesClick(object sender, EventArgs e)
        {
            //Pintar el contenedor
            Ctl = (Control)sender;
            if (Ctl.Parent.Parent.Name.Contains("Max"))
            {
                OpcionesClick(Ctl.Parent, EventArgs.Empty);
            }

            else if (Ctl.Name.Contains("Entrada"))
            {
                OpcionesClick(PnEntradas, EventArgs.Empty);
            }
            else if (Ctl.Name.Contains("Paso"))
            {
                OpcionesClick(PnPasos, EventArgs.Empty);
            }
            else if (Ctl.Name.Contains("Registro"))
            {
                PnSubMaxRegistros.Show();
                AlterVisibilidad(Ctl, EventArgs.Empty);
                OpcionesClick(PnRegistros, EventArgs.Empty);
            }
        }
Beispiel #3
0
 private void ControlsHide()
 {
     PnSubMaxRegistros.Hide();
     PnVisibilidadMax.Hide();
 }