コード例 #1
0
        private void datagridFilelist_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            if (datagridFilelist.Items.Count > 0)
            {
                int index = datagridFilelist.SelectedIndex;

                comboboxGenre.Text   = DataGetSet.GetGenre(songRecords[index].Genre);
                comboboxCatalog.Text = DataGetSet.GetCatalog(songRecords[index].Catalog);
                comboboxMedia.Text   = DataGetSet.GetMedia(songRecords[index].Media);

                comboboxAlbum.Text  = songRecords[index].Album;
                comboboxArtist.Text = songRecords[index].Artist;
            }
        }