Esempio n. 1
0
        private async void ButtonSave_Click(object sender, RoutedEventArgs e)
        {
            TagFile.Tag.Genres = (from item in (List <Genre>)lstGenre.ItemsSource where item.IsChecked select item.Text).ToArray();
            try
            {
                TagFile.Save();
            }
            catch (Exception ex)
            {
                MessageWindow message = new MessageWindow(string.Format(Application.Current.Resources["SaveTagsError"].ToString(), ex.Message), Application.Current.Resources["Error"].ToString(), false);
                message.ShowDialog();
                return;
            }

            await CurrentTrack.LoadInformation();
        }