Example #1
0
 public void IniciarSesion()
 {
     try
     {
         int id = sesionDAO.IniciarSesion(Modelo.SesionActiva.ObtenerInstancia());
         Modelo.SesionActiva.ObtenerInstancia().ID = id;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public void IniciarSesion()
 {
     try
     {
         int id = sesionDAO.IniciarSesion(Modelo.Sesion.ObtenerInstancia());
         Modelo.Sesion.ObtenerInstancia().ID = id;
         sesionTime           = new Timer(7200000);
         sesionTime.Elapsed  += SesionTime_Elapsed;
         sesionTime.AutoReset = true;
         sesionTime.Enabled   = true;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }