public CategoryListViewModel(ICategoryService categoryService, ICategoryListView categoryListView,
     IEventAggregator eventAggregator)
     : base(categoryListView)
 {
     //this._libraryService = libraryService;
     this._categoryService = categoryService;
     this._eventAggregator = eventAggregator;
     this.InitCollection();
     this._eventAggregator.GetEvent<VideoEdited>().Subscribe(this.Refresh);
     this._eventAggregator.GetEvent<LibraryUpdated>().Subscribe(this.BuildCategoryList);
 }
示例#2
0
 public CategoryPresenter(ICategoryListView view)
 {
     _view  = view;
     _model = new ModelCategory();
     SubscribeViewToEvents();
 }