Example #1
0
        private void Form2_Load(object sender, EventArgs e)
        {
            conexion oper = new conexion();

            dgbtp.DataSource    = oper.consultaconresul("select * from tipo_persona");
            dgbcargo.DataSource = oper.consultaconresul("select * from cargo");
            dgbe.DataSource     = oper.consultaconresul("select * from empleado");
            dgbu.DataSource     = oper.consultaconresul("select * from usuario");
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            conexion oper = new conexion();

            dgbtp.DataSource = oper.consultaconresul("select * from tipo_persona");
        }
Example #3
0
        private void btnrefu_Click(object sender, EventArgs e)
        {
            conexion oper = new conexion();

            dgbu.DataSource = oper.consultaconresul("select * from usuario");
        }
Example #4
0
        private void btnrefe_Click(object sender, EventArgs e)
        {
            conexion oper = new conexion();

            dgbcargo.DataSource = oper.consultaconresul("select * from empleado");
        }