//-------------------------------------------------------------------- /* * Constructeur */ public BedroomViewModel() { bedroomRepository = new BedroomRepository(); Bedrooms = bedroomRepository.GetBedrooms(); Floors = bedroomRepository.GetEtages(); Floors.Add(0); Statuts = bedroomRepository.GetStatuts(); Statuts.Add(""); BedroomType = bedroomRepository.GetBedroomType(); BedroomType.Add(new bedroom_type()); }
//-------------------------------------------------------------------- /** * Permet de mettre à jour la liste des chambres */ private void UpdateBedrooms() { Bedrooms = bedroomRepository.GetBedrooms(StatutString, Floor_filter, Bedroom_type); }