private void OnPropertyChanged(string info)
        {
            PropertyChangedEventHandler handler = PropertyChanged;

            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(info));
                DepartementORM.updateDepartement(this);
            }
        }
Ejemplo n.º 2
0
        public static PlageViewModel getPlage(int idPlage)
        {
            PlageDAO pDAO          = PlageDAO.getPlage(idPlage);
            int      idPrelevement = pDAO.prelevement_idprelevementDAO;
            int      idVille       = pDAO.Ville_idVilleDAO;
            int      iDepartement  = pDAO.Departement_idDepartementDAO;

            PrelevementViewModel pr = PrelevementORM.getPrelevement(idPrelevement);
            CommuneViewModel     c  = CommuneORM.getCommune(idVille);
            DepartementViewModel d  = DepartementORM.getDepartement(iDepartement);

            PlageViewModel p = new PlageViewModel(pDAO.idPlageDAO, pDAO.nomDAO, c, pr, d);

            return(p);
        }