Beispiel #1
0
        private void ChangeImage_Click(object sender, RoutedEventArgs e)
        {
            Album selectedImage      = artistListListBox.Items.GetItemAt(artistListListBox.SelectedIndex) as Album;
            FindAlbumImageWindow dlg = new FindAlbumImageWindow(selectedImage.Name);

            if (dlg.ShowDialog() == true)
            {
                ((App)Application.Current).UpdateZdjecia(dlg.selectedAlbumImage);
            }
        }
Beispiel #2
0
        private void ChangeAlbumCoverClick(object sender, RoutedEventArgs e)
        {
            Album wybrany            = albumListBox.Items.GetItemAt(albumListBox.SelectedIndex) as Album;
            FindAlbumImageWindow dlg = new FindAlbumImageWindow(wybrany.Name);

            if (dlg.ShowDialog() == true)
            {
                ((App)Application.Current).UpdateOkladka(dlg.selectedAlbumImage);
            }
        }