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

            addGenreWindow.ShowDialog();
            RefreshUIElements();
        }
コード例 #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();
        }
コード例 #3
0
        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;
        }