public void removeCadeauFromList(int IndexCadeau) { LijstHasCadeau item = _persistController.getLHCFromWishlist(_activeLijst.ID)[IndexCadeau]; LHCRepository.removeLHCFromRepo(item); _persistController.removeLHCFromWishlist(item); }
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); }
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); }
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; }
public void setCurrentLijstID(LijstHasCadeau ID) { _currentLijstID = ID; }
public List <Cadeau> getCadeausFromID(LijstHasCadeau id) { return(_persistController.getLHCFromID(_currentLijstID.FK_Lijst)); }
public static void addLHCToRepo(LijstHasCadeau lhc) { _lhcList.Add(lhc); }
public static void removeLHCFromRepo(LijstHasCadeau lhc) { _lhcList.Remove(lhc); }