public ActorManagerViewModel(IActorViewModelFactory viewModelFactory, IFileSystemService fileSystemService, string path, Action onPropertyChanged)
 {
     _fileSystemService = fileSystemService;
     _path = path;
     _onPropertyChanged = onPropertyChanged;
     Actors = new ObservableCollection<IActorViewModel>();
     Actors.CollectionChanged += ActorsCollectionChanged;
     AddCommand = new AddCommand(this, viewModelFactory);
     RemoveCommand = new RemoveCommand(this);
 }
 public ActorManagerViewModel(IActorViewModelFactory viewModelFactory, IFileSystemService fileSystemService, string path, Action onPropertyChanged)
 {
     _fileSystemService = fileSystemService;
     _path = path;
     _onPropertyChanged        = onPropertyChanged;
     Actors                    = new ObservableCollection <IActorViewModel>();
     Actors.CollectionChanged += ActorsCollectionChanged;
     AddCommand                = new AddCommand(this, viewModelFactory);
     RemoveCommand             = new RemoveCommand(this);
 }
 public MovieViewModelFactory(ISourceService sourceService,
     IMovieMetadataService metadataService,
     IFileSystemService fileSystemService,
     IProgressManagerViewModel progressManager,
     IKeyDataStore keyDataStore,
     IBusyProvider busyProvider,
     IDialogViewer dialogViewer,
     IActorViewModelFactory actorViewModelFactory)
 {
     _sourceService = sourceService;
     _fileSystemService = fileSystemService;
     _metadataService = metadataService;
     _progressManager = progressManager;
     _keyDataStore = keyDataStore;
     _busyProvider = busyProvider;
     _dialogViewer = dialogViewer;
     _actorViewModelFactory = actorViewModelFactory;
 }
 public MovieViewModelFactory(ISourceService sourceService,
                              IMovieMetadataService metadataService,
                              IFileSystemService fileSystemService,
                              IProgressManagerViewModel progressManager,
                              IKeyDataStore keyDataStore,
                              IBusyProvider busyProvider,
                              IDialogViewer dialogViewer,
                              IActorViewModelFactory actorViewModelFactory)
 {
     _sourceService         = sourceService;
     _fileSystemService     = fileSystemService;
     _metadataService       = metadataService;
     _progressManager       = progressManager;
     _keyDataStore          = keyDataStore;
     _busyProvider          = busyProvider;
     _dialogViewer          = dialogViewer;
     _actorViewModelFactory = actorViewModelFactory;
 }
 public TvShowViewModelFactory(ISourceService sourceService,
                               IFileSystemService fileSystemService,
                               ITvShowFileService tvShowFileService,
                               ITvShowMetadataService tvShowMetadataService,
                               IEpisodeMetadataService episodeMetadataService,
                               IProgressManagerViewModel progressManagerViewModel,
                               IKeyDataStore keyDataStore,
                               IBusyProvider busyProvider,
                               IDialogViewer dialogViewer,
                               IActorViewModelFactory actorViewModelFactory)
 {
     _sourceService            = sourceService;
     _fileSystemService        = fileSystemService;
     _tvShowFileService        = tvShowFileService;
     _tvShowMetadataService    = tvShowMetadataService;
     _episodeMetadataService   = episodeMetadataService;
     _progressManagerViewModel = progressManagerViewModel;
     _keyDataStore             = keyDataStore;
     _busyProvider             = busyProvider;
     _dialogViewer             = dialogViewer;
     _actorViewModelFactory    = actorViewModelFactory;
 }
 public TvShowViewModelFactory(ISourceService sourceService,
     IFileSystemService fileSystemService,
     ITvShowFileService tvShowFileService,
     ITvShowMetadataService tvShowMetadataService,
     IEpisodeMetadataService episodeMetadataService,
     IProgressManagerViewModel progressManagerViewModel,
     IKeyDataStore keyDataStore,
     IBusyProvider busyProvider,
     IDialogViewer dialogViewer,
     IActorViewModelFactory actorViewModelFactory)
 {
     _sourceService = sourceService;
     _fileSystemService = fileSystemService;
     _tvShowFileService = tvShowFileService;
     _tvShowMetadataService = tvShowMetadataService;
     _episodeMetadataService = episodeMetadataService;
     _progressManagerViewModel = progressManagerViewModel;
     _keyDataStore = keyDataStore;
     _busyProvider = busyProvider;
     _dialogViewer = dialogViewer;
     _actorViewModelFactory = actorViewModelFactory;
 }
Пример #7
0
 public AddCommand(IActorManagerViewModel actorManager, IActorViewModelFactory viewModelFactory)
 {
     _actorManager     = actorManager;
     _viewModelFactory = viewModelFactory;
 }
Пример #8
0
 public AddCommand(IActorManagerViewModel actorManager, IActorViewModelFactory viewModelFactory)
 {
     _actorManager = actorManager;
     _viewModelFactory = viewModelFactory;
 }