private void OnPropertyChanged(string info) { PropertyChangedEventHandler handler = PropertyChanged; if (handler != null) { handler(this, new PropertyChangedEventArgs(info)); DepartementORM.updateDepartement(this); } }
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); }