public ChapterListItemViewModel(MangaViewModel parent, int index)
        {
            Parent = parent;
            Index  = index;

            DownloadChapter = new RelayCommand(AddToDownloadQueue);
            ReadChapter     = new RelayCommand(Read);
        }
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();
        }
Example #3
0
 public HtmlPageLoader(MainViewModel mainView, MangaViewModel mangaView)
 {
     MainView  = mainView;
     MangaView = mangaView;
 }