protected NotificationChannelDefinitionsViewModel(IList <TModel> model, NotificationChannelDefinitionViewModelFactory <TModel, TViewModel> factory, IDialogCoordinator dialogCoordinator, IEventAggregator eventAggregator, INotifiableEventPublisher eventPublisher)
 {
     this.factory           = factory;
     this.Model             = model;
     this.EventAggregator   = eventAggregator;
     this.DialogCoordinator = dialogCoordinator;
     this.ViewModels        = new BindableCollection <TViewModel>(this.Model.Select(t => this.factory.CreateViewModel(t)));
     eventPublisher.Register(this);
 }
Example #2
0
 protected NotificationChannelDefinitionsViewModelFactory(NotificationChannelDefinitionViewModelFactory <TModel, TViewModel> factory)
 {
     this.factory = factory;
 }