コード例 #1
0
 private void LoadForm(int id)
 {
     currentDocente    = docenteLogic.GetOne(id);
     txtApellido.Text  = currentDocente.Apellido;
     txtDireccion.Text = currentDocente.Direccion;
     txtEmail.Text     = currentDocente.Email;
     txtNombre.Text    = currentDocente.Nombre;
     txtFecNac.Text    = currentDocente.FechaNacimiento.ToString();
     txtLegajo.Text    = currentDocente.Legajo.ToString();
     txtTelefono.Text  = currentDocente.Telefono;
 }
コード例 #2
0
 public DocentesDesktop(int ID, ModoForm modo)
     : this()
 {
     this.Modo = modo;
     try
     {
         this.docente = docenteLogic.GetOne(ID);
         this.MapearDeDatos();
     }
     catch (NotFoundException ex)
     {
         Notificar(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (CustomException ex)
     {
         Notificar(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (Exception ex)
     {
         Notificar(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }