Пример #1
0
 private void _vista_UsuarioDeseaObtenerRoles(object sender, EventArgs e)
 {
     try
     {
         _vista.RolesDeUsuario = UsuarioServicio.ObtenerRolesDeUsuario();
     }
     catch (Exception exception)
     {
         InteraccionConUsuarioServicio.MensajeErrorDialogo(exception.Message);
     }
 }
Пример #2
0
 private void _vista_VistaCargandosePorPrimeraVez(object sender, EventArgs e)
 {
     try
     {
         _vista.Piloto = new Piloto();
         //_vista.UsuariosPorRol = new List<Usuario>();
         _vista.UsuariosExternos = new List <Usuario>();
         _vista.Pilotos          = PilotoServicio.ObtenerPilotos(new PilotoArgumento {
             Piloto = new Piloto()
         });
         _vista.RolesDeUsuario = UsuarioServicio.ObtenerRolesDeUsuario();
         ObtenerParametros();
     }
     catch (Exception exception)
     {
         InteraccionConUsuarioServicio.MensajeErrorDialogo(exception.Message);
     }
 }