Ejemplo n.º 1
0
 public override bool login()
 {
     if (ClientDAO.currentInstance.checkUserPassword(Username, Password))
     {
         currentInstance = ClientDAO.currentInstance.getClient(Username);
         currentInstance.photobook = new Photobook(Username);
         currentInstance.tradebook = new Tradebook(Username);
         return true;
     }
     return false;
 }
Ejemplo n.º 2
0
 public override void logout()
 {
     currentInstance = null;
 }