Exemple #1
0
        //--------------------------------------------------------------------

        /*
         * 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());
        }
Exemple #2
0
        //--------------------------------------------------------------------

        /**
         * Permet de mettre à jour la liste des chambres
         */
        private void UpdateBedrooms()
        {
            Bedrooms = bedroomRepository.GetBedrooms(StatutString, Floor_filter, Bedroom_type);
        }