Example #1
0
        public FindByViewModel(MainViewModel mainViewModel, HtmlPageLoader pageLoader)
        {
            _suitableMangaSources = new ObservableCollection <string> {
                "Mangakakalot.com"
            };

            //FindByName = new RelayCommand(() => Task.Run(SearchWithName));
            //FindByURL = new RelayCommand(() => Task.Run(SearchWithURL));
            FindCommand = new RelayCommand(Find);

            mainView = mainViewModel;
        }
Example #2
0
        public MainViewModel()
        {
            Settings = SaveSystem.LoadSettings();
            _settingsPanelViewModel = new SettingsPanelViewModel(this);

            _downloadsPanelViewModel  = new DownloadsPanelViewModel(this);
            _notificationsViewModel   = new NotificationsViewModel();
            _menuViewModel            = new MenuViewModel(this);
            _findByViewModel          = new FindByViewModel(this, HtmlPageLoader);
            _mangaViewModel           = new MangaViewModel(this);
            _readerViewModel          = new ReaderViewModel(this);
            _downloadsViewerViewModel = new DownloadsViewerViewModel(this);

            HtmlPageLoader = new HtmlPageLoader(this, _mangaViewModel);
            //HtmlPageLoader.LoadData("https://mangakakalot.com/manga/moshi_fanren");
            //HtmlPageLoader.ApplyData();
        }