Example #1
0
        private void btnAddNewArtist_Click(object sender, RoutedEventArgs e)
        {
            //Open the AddArtist window.
            AddArtist addArtistWindow = new AddArtist();

            addArtistWindow.ShowDialog();
            RefreshUIElements();
        }
Example #2
0
        private void btnAddSongAddArtist_Click(object sender, RoutedEventArgs e)
        {
            //Add an Artist from the Add Song window.
            AddArtist addArtistWindow = new AddArtist();

            addArtistWindow.ShowDialog();
            SetUpUI();
        }
        private void btnAddAlbumAddArtist_Click(object sender, RoutedEventArgs e)
        {
            //From the Add Album window, add an Artist.
            AddArtist addArtistWindow = new AddArtist();

            addArtistWindow.ShowDialog();
            comboBoxAddAlbumArtist.DataContext     = null;
            comboBoxAddAlbumSongArtist.DataContext = null;
            CDCatalogProcess.AddSongsFillArtists();
            comboBoxAddAlbumArtist.DataContext     = CDCatalogProcess.subWindowArtistList;
            comboBoxAddAlbumSongArtist.DataContext = CDCatalogProcess.subWindowArtistList;
            comboBoxAddAlbumArtist.SelectedIndex   = 0;
        }