Пример #1
0
        public BookmarksManager(ExtensionToImageFileConverter converter)
        {
            _converter           = converter;
            BookmarkClickCommand = new DelegateCommand(OnBookmarkClicked);

            AddBookmarkCommand = new DelegateCommand(OnAddBookmark);

            _items = OpenBookmarksFile();

            _bookmarks = CreateMenuItemViewModels(_items);
        }
Пример #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);
        }
Пример #3
0
 public IconsManager(ExtensionToImageFileConverter converter)
 {
     _converter = converter;
 }