private void ImportSong_Click(object sender, RoutedEventArgs e) { //select file string currentPath = OpenStuff.Files.GetPathFromDialog(null, Paths.Defaults.Music, OpenStuff.Files.Kinds.Music); TagLib.File newFile = TagProcessing.GetTagsFromFile(currentPath); //Cache Info Caching.currentFile = new Caching.CachedFile { fullPath = currentPath, Cover = newFile.GetCoverImage(), active = true }; TB_Interpret.Text = newFile.Tag.FirstPerformer; TB_Title.Text = newFile.Tag.Title; TB_Album.Text = newFile.Tag.Album; TB_Track.Text = newFile.Tag.Track.ToString(); TB_Year.Text = newFile.Tag.Year.ToString(); TB_Comment.Text = newFile.Tag.Comment; CB_Genre.SelectNewItem(newFile.Tag.FirstGenre); IMG_Cover.Source = Images.GetCoverForUI(Caching.currentFile.Cover); }