Пример #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;
 }
Пример #2
0
 public override void logout()
 {
     currentInstance = null;
 }