コード例 #1
0
ファイル: MainViewModel.cs プロジェクト: mHaisham/Manga-Moon
        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();
        }
コード例 #2
0
 public DownloadedItemViewModel(DownloadsViewerViewModel parent, string text)
 {
     _text  = text.Split('\\').Last();
     Parent = parent;
     Read   = new RelayCommand(View);
 }