Exemple #1
0
        private void btnAddNewGenre_Click(object sender, RoutedEventArgs e)
        {
            //Open the AddGenre window.
            AddGenre addGenreWindow = new AddGenre();

            addGenreWindow.ShowDialog();
            RefreshUIElements();
        }
Exemple #2
0
        private void btnAddSongAddGenre_Click(object sender, RoutedEventArgs e)
        {
            //Add a Genre from the Add Song window.
            AddGenre addGenreWindow = new AddGenre();

            addGenreWindow.ShowDialog();
            SetUpUI();
        }
        private void btnAddAlbumAddGenre_Click(object sender, RoutedEventArgs e)
        {
            //From the Add Album window, add a Genre.
            AddGenre addGenreWindow = new AddGenre();

            addGenreWindow.ShowDialog();
            comboBoxAddAlbumGenreIn.DataContext = null;
            CDCatalogProcess.AddSongsFillGenres();
            comboBoxAddAlbumGenreIn.DataContext   = CDCatalogProcess.subWindowGenreList;
            comboBoxAddAlbumGenreIn.SelectedIndex = 0;
        }