/// <summary> /// /// </summary> public ListFilmViewModel() { ListFilm = FilmFactory.AllFilmEntitieToFilm(FilmDAO.GetAllFilm()); ToDisplay = ListFilm; AddCommand = new DelegateCommand(OnAddCommand, CanAddCommand); EditCommand = new DelegateCommand(OnEditCommand, CanEditCommand); SupprCommand = new DelegateCommand(OnSupprCommand, CanSupprCommand); SearchCommand = new DelegateCommand(OnSearchCommand, CanSearchCommand); SaveCommand = new DelegateCommand(OnSaveCommand, CanSaveCommand); }