public ExplorerViewModel(IFolderController folderController, IFileController fileController, IMediaFileController mediaFileController, IMediaFactory factory, IFolderScanner scanner, IUserInput input, IMediaBroadcaster broadcaster) { FolderController = folderController; FileController = fileController; Scanner = scanner; Input = input; MediaFileController = mediaFileController; Factory = factory; Broadcaster = broadcaster; Folders = new ObservableCollection <IFolder>(FolderController.GetList()); }
public LibraryViewModel(IMediaFileController mediaFileController, IUserInput input, IMediaSubscription subscription) { MediaFileController = mediaFileController; Input = input; Subscription = subscription; subscription.Subscribe(NewMediaHandler); Media = new ObservableCollection <ISelectableMediaFile>( MediaFileController.GetList().Select(mf => new SelectableMediaFile(mf))); }