예제 #1
0
 public Lijst CreateList(string Naam)
 {
     _activeLijst = new Lijst(Naam, GetCode().ToString(), "Ja", _activeGebruiker.ID);
     _persistController.addWishlistsToDB(_activeLijst);
     LijstRepository.Lijsten = _persistController.getWishlistsFromDB();
     _activeLijst            = LijstRepository.getLastList();
     return(_activeLijst);
 }
예제 #2
0
 public Controller()
 {
     _persistController             = new Persistence.Controller();
     CadeauRepository.Cadeaus       = _persistController.getCadeausFromDB();
     GebruikerRepository.Gebruikers = _persistController.getGebruikersFromDB();
     LijstRepository.Lijsten        = _persistController.getWishlistsFromDB();
     LHCRepository.LHCList          = _persistController.getLHCFromDB();
     _activeGebruiker = null;
     _activeLijst     = null;
     _currentLijst    = null;
     _currentLijstID  = null;
 }
예제 #3
0
 public void addWishlistsToDB(Lijst item)
 {
     _persistController.addWishlistsToDB(item);
     LijstRepository.addLijst(item);
 }
예제 #4
0
 public void setCurrentLijst(Lijst item)
 {
     _currentLijst = item;
 }
예제 #5
0
 public static void addLijst(Lijst item)
 {
     _lijsten.Add(item);
 }