Beispiel #1
0
        private void btnseleccionar_Click(object sender, EventArgs e)
        {
            Form f = new Consultar();

            Consultar.SeleccionandoIndex = 1;
            Consultar.Seleccionando      = true;
            MenuPrincipal.idseleccionar  = "0";
            f.ShowDialog();
            if (MenuPrincipal.idseleccionar != "0")
            {
                txtempleado.Text   = CargarEmpleado(MenuPrincipal.idseleccionar);
                txtidempleado.Text = MenuPrincipal.idseleccionar;
            }
            else
            {
            }
        }
Beispiel #2
0
        private void btnselectpart_Click(object sender, EventArgs e)
        {
            Form f = new Consultar();

            Consultar.Seleccionando      = true;
            Consultar.SeleccionandoIndex = 0;
            f.ShowDialog();
            if (MenuPrincipal.idseleccionar != "0")
            {
                //Cargar nombre e id
                DataSet ds = oper.DataSetConsulta("SELECT matricula FROM participantes WHERE id = '" + MenuPrincipal.idseleccionar + "'");
                txtparticipantematricula.Text = ds.Tables[0].Rows[0][0].ToString();
            }
            else
            {
                //No hacer nada
            }
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form f = new Consultar();

            Consultar.Seleccionando      = true;
            Consultar.SeleccionandoIndex = 2;
            f.ShowDialog();
            if (MenuPrincipal.idseleccionar != "0")
            {
                //Cargar nombre e id
                DataSet ds = oper.DataSetConsulta("SELECT nombre FROM equipos WHERE id = '" + MenuPrincipal.idseleccionar + "'");
                txtequipo.Text   = ds.Tables[0].Rows[0][0].ToString();
                txtidequipo.Text = MenuPrincipal.idseleccionar;
            }
            else
            {
                //No hacer nada
            }
        }
Beispiel #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form f = new Consultar();

            f.ShowDialog();
        }
Beispiel #5
0
        private void consultarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form f = new Consultar();

            f.ShowDialog();
        }