示例#1
0
        private void btnBuscarGestor_Click(object sender, EventArgs e)
        {
            string            cad = "Disponible";
            frmBuscarGestores formBuscarGestores = new frmBuscarGestores(cad);

            formBuscarGestores.Location = new Point(0, 0);
            if (formBuscarGestores.ShowDialog() == DialogResult.OK)
            {
                gestor = (ServicioJava.gestor)formBuscarGestores.GestorSeleccionado;
                txtNombreGestor.Text = gestor.nombre + " " + gestor.apellido;
                txtCodigo.Text       = gestor.codigo;
            }
        }
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            frmBuscarGestores frmBuscarGestor = new frmBuscarGestores();

            if (frmBuscarGestor.ShowDialog() == DialogResult.OK)
            {
                gestor = frmBuscarGestor.GestorSeleccionado;

                txtCodigo.Text           = gestor.codigo;
                txtNombres.Text          = gestor.nombre;
                txtApellidos.Text        = gestor.apellido;
                txtCorreo.Text           = gestor.email;
                txtClave.Text            = gestor.contrasenia;
                dtpFechaIng.Value        = gestor.fecha_ingreso;
                cmbBibAisg.SelectedValue = gestor.biblioteca.id;
                estadoComponentes(Estado.Buscar);
            }
        }