Exemplo n.º 1
0
        /// <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);
        }