Exemple #1
0
        private void Discography_Click(object sender, RoutedEventArgs e)
        {
            DiscographyView discographyView = new DiscographyView();

            discographyView.Show();
            this.Close();
        }
 private void Discography_Click(object sender, RoutedEventArgs e)
 {
     this.Close();
     _albums = GameSeedData.AlbumObjects();
     _discographyViewModel = new DiscographyViewModel(_albums);
     _discographyViewModel.SelectedAlbum = _albums.Where(x => x.AlbumName == "Schrei").FirstOrDefault();
     _discographyViewModel.SearchedSongs = GameSeedData.AllSongs();
     _discographyView             = new DiscographyView(_discographyViewModel);
     _discographyView.DataContext = _discographyViewModel;
     _discographyView.Show();
     _discographyViewModel.discographyView = _discographyView;
 }