Example #1
0
        public BookmarksManager(ExtensionToImageFileConverter converter)
        {
            _converter           = converter;
            BookmarkClickCommand = new DelegateCommand(OnBookmarkClicked);

            AddBookmarkCommand = new DelegateCommand(OnAddBookmark);

            _items = OpenBookmarksFile();

            _bookmarks = CreateMenuItemViewModels(_items);
        }
Example #2
0
        private ChromEr(ISynchronizationHelper synchronizationHelper,
                        ITabClient tabClient,
                        Action <TabsViewModel, Point> windowFactory)
        {
            _synchronizationHelper = synchronizationHelper;
            _tabClient             = tabClient;
            _windowFactory         = windowFactory;

            var converter = new ExtensionToImageFileConverter();

            OpenNewWindowCommand = new DelegateCommand(OnOpenNewWindow);

            IconsManager     = new IconsManager(converter);
            BookmarksManager = new BookmarksManager(converter);
        }
Example #3
0
 public IconsManager(ExtensionToImageFileConverter converter)
 {
     _converter = converter;
 }