예제 #1
0
        private void picInstancia_Click(object sender, EventArgs e)
        {
            FrmPrincipal frmPricipal = new FrmPrincipal();

            frmPricipal.Show();
        }
예제 #2
0
        protected void BuscarForma(string cadena)
        {
            try {
                cadena = cadena.ToUpper();
                FrmPrincipal principal = new FrmPrincipal();
                bool         flag      = false;

                if (cadena.Trim().Length == 0)
                {
                    flag = true;
                    MostrarError("El campo se encuentra vacio");
                }

                if (cadena == "ZPPG01")
                {
                    flag = true;
                    this.Hide();
                    //FrmZPPG01Entrada zppg01 = new FrmZPPG01Entrada();
                    //zppg01.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZPPG02")
                {
                    flag = true;
                    this.Hide();
                    //FrmZPPG02 zppg02 = new FrmZPPG02();
                    //zppg02.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZPPG03")
                {
                    flag = true;
                    this.Hide();
                    //FrmZPPG03 zppg03 = new FrmZPPG03();
                    //zppg03.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZPPG05")
                {
                    flag = true;
                    this.Hide();
                    //FrmZPPG05Entrada zppg05 = new FrmZPPG05Entrada();
                    //zppg05.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZINTERFAZHU")
                {
                    flag = true;
                    this.Hide();
                    //FrmHUProcesarEntrada hu = new FrmHUProcesarEntrada();
                    //hu.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZPPG27")
                {
                    flag = true;
                    this.Hide();
                    //FrmZPPG27 zppg27 = new FrmZPPG27();
                    //zppg27.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZMASTER")
                {
                    flag = true;
                    this.Hide();
                    //FrmZMASTERMenu menu = new FrmZMASTERMenu();
                    //menu.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZMASTER")
                {
                    flag = true;
                    this.Hide();
                    //FrmZMASTERMenu menu = new FrmZMASTERMenu();
                    //menu.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZTRASLADOS")
                {
                    flag = true;
                    this.Hide();
                    //FrmTrasladosTarimas tras = new FrmTrasladosTarimas();
                    //tras.ShowDialog();
                    this.Show();
                }

                if (cadena == "ZWMG04")
                {
                    flag = true;
                    this.Hide();
                    //FrmZwmg04 zwmg04 = new FrmZwmg04();
                    //zwmg04.ShowDialog();
                    this.Show();
                }

                if (flag == false)
                {
                    MostrarError("Ingresa un código válido");
                }
            }
            catch (Exception ex) {
                MostrarError(ex.Message);
            }
        }
예제 #3
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            FrmPrincipal frmPricipal = new FrmPrincipal();

            frmPricipal.Show();
        }