Пример #1
0
        public void removeCadeauFromList(int IndexCadeau)
        {
            LijstHasCadeau item = _persistController.getLHCFromWishlist(_activeLijst.ID)[IndexCadeau];

            LHCRepository.removeLHCFromRepo(item);
            _persistController.removeLHCFromWishlist(item);
        }
Пример #2
0
        public void removeCadeauFromWishlist(int index)
        {
            //Het element op plaats index in de lijst van cadeaus in de actieve wishlist moet weg
            LijstHasCadeau lhc = LHCRepository.getCadeausFromList(_activeLijst.ID)[index];

            _persistController.removeLHCFromWishlist(lhc);
            LHCRepository.removeLHCFromRepo(lhc);
        }
Пример #3
0
        public Cadeau addCadeauToList(int IndexCadeau)
        {
            Cadeau         cadeau = CadeauRepository.Cadeaus[IndexCadeau];
            LijstHasCadeau item   = new LijstHasCadeau(_activeLijst.ID, IndexCadeau, "Nee");

            LHCRepository.addLHCToRepo(item);
            _persistController.addLHCToDB(item);

            return(cadeau);
        }
Пример #4
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;
 }
Пример #5
0
 public void setCurrentLijstID(LijstHasCadeau ID)
 {
     _currentLijstID = ID;
 }
Пример #6
0
 public List <Cadeau> getCadeausFromID(LijstHasCadeau id)
 {
     return(_persistController.getLHCFromID(_currentLijstID.FK_Lijst));
 }
Пример #7
0
 public static void addLHCToRepo(LijstHasCadeau lhc)
 {
     _lhcList.Add(lhc);
 }
Пример #8
0
 public static void removeLHCFromRepo(LijstHasCadeau lhc)
 {
     _lhcList.Remove(lhc);
 }