private static IFilesPanelViewModel CreateFilesPanelViewModel( IReadonlyDependencyResolver resolver, string panelKey) { var filesPanelStateService = new FilesPanelStateService( resolver.GetRequiredService <IUnitOfWorkFactory>(), panelKey ); var tabsListViewModel = new TabsListViewModel( filesPanelStateService, resolver.GetRequiredService <IDirectoryService>(), resolver.GetRequiredService <ITabViewModelFactory>(), resolver.GetRequiredService <FilePanelConfiguration>() ); var filesPanelViewModel = new FilesPanelViewModel( resolver.GetRequiredService <IFileService>(), resolver.GetRequiredService <IDirectoryService>(), resolver.GetRequiredService <INodesSelectionService>(), resolver.GetRequiredService <IFileSystemNodeViewModelFactory>(), resolver.GetRequiredService <IFileSystemWatchingService>(), resolver.GetRequiredService <IApplicationDispatcher>(), resolver.GetRequiredService <IFileSizeFormatter>(), resolver.GetRequiredService <IClipboardOperationsService>(), resolver.GetRequiredService <IFileSystemNodeViewModelComparerFactory>(), resolver.GetRequiredService <ISearchViewModel>(), tabsListViewModel ); return(filesPanelViewModel); }
private static IFilesPanelViewModel CreateFilesPanelViewModel( IReadonlyDependencyResolver resolver, string panelKey) { var observer = resolver.GetRequiredService <IFilePanelDirectoryObserver>(); var directorySelectorViewModel = new DirectorySelectorViewModel( resolver.GetRequiredService <IFavouriteDirectoriesService>(), resolver.GetRequiredService <IDirectoryService>(), resolver.GetRequiredService <ISuggestionsService>(), observer, resolver.GetRequiredService <ISuggestedPathViewModelFactory>() ); var filesPanelStateService = new FilesPanelStateService( resolver.GetRequiredService <IUnitOfWorkFactory>(), panelKey ); var tabsListViewModel = new TabsListViewModel( filesPanelStateService, resolver.GetRequiredService <IDirectoryService>(), resolver.GetRequiredService <ITabViewModelFactory>(), resolver.GetRequiredService <IFilesOperationsMediator>(), resolver.GetRequiredService <IHomeDirectoryProvider>(), observer, resolver.GetRequiredService <TabsListConfiguration>() ); var filesPanelViewModel = new FilesPanelViewModel( resolver.GetRequiredService <IFileService>(), resolver.GetRequiredService <IDirectoryService>(), resolver.GetRequiredService <INodesSelectionService>(), resolver.GetRequiredService <INodeService>(), resolver.GetRequiredService <IFileSystemNodeViewModelFactory>(), resolver.GetRequiredService <IFileSystemWatchingService>(), resolver.GetRequiredService <IApplicationDispatcher>(), resolver.GetRequiredService <IFileSizeFormatter>(), resolver.GetRequiredService <IFileSystemNodeViewModelComparerFactory>(), resolver.GetRequiredService <IRecursiveSearchService>(), observer, resolver.GetRequiredService <IPermissionsService>(), resolver.GetRequiredService <IDialogService>(), resolver.GetRequiredService <ISearchViewModel>(), tabsListViewModel, resolver.GetRequiredService <IOperationsViewModel>(), directorySelectorViewModel, resolver.GetRequiredService <IDragAndDropOperationsMediator>(), resolver.GetRequiredService <IClipboardOperationsViewModel>() ); return(filesPanelViewModel); }