Example #1
0
        private void dgvempleado_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Operaciones     op       = new Operaciones();
            frmEmpleado     emp      = new frmEmpleado();
            DataGridViewRow rellenar = dgvempleado.Rows[e.RowIndex];

            emp.cmbestado.Text         = rellenar.Cells["Estatus"].Value.ToString();
            emp.txtnombre.Text         = rellenar.Cells["Nombre"].Value.ToString();
            emp.txtapellido.Text       = rellenar.Cells["Apellido"].Value.ToString();
            emp.txtcedula.Text         = rellenar.Cells["Cedula"].Value.ToString();
            emp.txtNacionalidad.Text   = rellenar.Cells["Nacionalidad"].Value.ToString();
            emp.txtdireccion.Text      = rellenar.Cells["Direccion"].Value.ToString();
            emp.txttelefono.Text       = rellenar.Cells["Telefono"].Value.ToString();
            emp.txtCorreo.Text         = rellenar.Cells["Correo"].Value.ToString();
            emp.cmbEstadoCivil.Text    = rellenar.Cells["Estado_civil"].Value.ToString();
            emp.txtid.Text             = rellenar.Cells["id_empleado"].Value.ToString();
            emp.cmbcargo.Text          = rellenar.Cells["Cargos"].Value.ToString();
            emp.cmbEstudiosExtras.Text = rellenar.Cells["Estudios_Extras"].Value.ToString();
            emp.cmbNivelAcademico.Text = rellenar.Cells["Nivel"].Value.ToString();

            emp.txtRuta.Text       = rellenar.Cells["foto"].Value.ToString();
            emp.txtNacimiento.Text = rellenar.Cells["nacimiento"].Value.ToString();
            emp.txtCelular.Text    = rellenar.Cells["celular"].Value.ToString();
            emp.cmbsexo.Text       = rellenar.Cells["sexo"].Value.ToString();

            OpenFileDialog OP = new OpenFileDialog();
            string         f  = emp.procesar(rellenar.Cells["foto"].Value.ToString());

            if (!f.Equals(""))
            {
                emp.pictureBox1.Load(f.ToString());
            }


            emp.Show();
        }
Example #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            frmEmpleado emp = new frmEmpleado();

            emp.Show();
        }
Example #3
0
        private void btnEmpleado_Click(object sender, EventArgs e)
        {
            Form crear = new frmEmpleado();

            crear.Show();
        }