Пример #1
0
        public AnimeDetailsWindowVM(MainWindowVM parentVM, AnimeDetailsWindow window)
        {
            parent = parentVM;
            dbModel = parent.DBModel;
            Anime = parentVM.SelectedAnime;
            this.window = window;

        }
Пример #2
0
        public void openAnimeDetails()
        {
            AnimeDetailsWindow a = new AnimeDetailsWindow();
            AnimeDetailsWindowVM vm = new AnimeDetailsWindowVM(this, a);
            a.DataContext = vm;
            try
            {
                a.ShowDialog();
            } catch(Exception)
            {
                a.Close();
            }

            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Anime"));
            
        }