public ControlVM(IBookmarksVM vm, BookmarksOperations operations, IMessageBoxService messageBoxService, DependencyObject control) { VM = vm; Operations = operations; this.messageBoxService = messageBoxService; this.control = control; }
BookmarksContent(IWpfCommandService wpfCommandService, IBookmarksVM bookmarksVM, BookmarksOperations bookmarksOperations, IMessageBoxService messageBoxService) { Operations = bookmarksOperations; bookmarksControl = new BookmarksControl(); this.bookmarksVM = bookmarksVM; bookmarksControl.DataContext = new ControlVM(bookmarksVM, bookmarksOperations, messageBoxService, bookmarksControl); bookmarksControl.BookmarksListViewDoubleClick += BookmarksControl_BookmarksListViewDoubleClick; wpfCommandService.Add(ControlConstants.GUID_BOOKMARKS_CONTROL, bookmarksControl); wpfCommandService.Add(ControlConstants.GUID_BOOKMARKS_LISTVIEW, bookmarksControl.ListView); bookmarksControl.ListView.PreviewKeyDown += ListView_PreviewKeyDown; }
BookmarksOperationsImpl(IBookmarksVM bookmarksVM, BookmarkDisplaySettings bookmarkDisplaySettings, Lazy <BookmarksService> bookmarksService, Lazy <BookmarkLocationSerializerService> bookmarkLocationSerializerService, Lazy <ISettingsServiceFactory> settingsServiceFactory, IPickFilename pickFilename, IMessageBoxService messageBoxService, Lazy <BookmarkSerializerService> bookmarkSerializerService, Lazy <TextViewBookmarkService> textViewBookmarkService, Lazy <ReferenceNavigatorService> referenceNavigatorService, Lazy <BookmarkNavigator> bookmarkNavigator) { this.bookmarksVM = bookmarksVM; this.bookmarkDisplaySettings = bookmarkDisplaySettings; this.bookmarksService = bookmarksService; this.bookmarkLocationSerializerService = bookmarkLocationSerializerService; this.settingsServiceFactory = settingsServiceFactory; this.pickFilename = pickFilename; this.messageBoxService = messageBoxService; this.bookmarkSerializerService = bookmarkSerializerService; this.textViewBookmarkService = textViewBookmarkService; this.referenceNavigatorService = referenceNavigatorService; this.bookmarkNavigator = bookmarkNavigator; }