Beispiel #1
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();
        }
Beispiel #2
0
 public NotificationItemViewModel(NotificationsViewModel _parent)
 {
     Remove = new RelayCommand(() => parent.RemoveItem(this));
     parent = _parent;
 }