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; }
public override void logout() { currentInstance = null; }