Exemplo n.º 1
0
 private void btnRecalculateReplayGainAll_Click(object sender, RoutedEventArgs e)
 {
     using (ReplayGainUpdateHelper updater = new ReplayGainUpdateHelper(this, this.SettingsManager, this.collectionSessionFactory))
     {
         updater.RunAllReleases();
     }
 }
Exemplo n.º 2
0
        private void btnRecalculateReplayGainThis_Click(object sender, RoutedEventArgs e)
        {
            object selectedItem = this.mainCollectionView.GetSelectedItem();

            if (selectedItem is string)
            {
                string  releaseId = (string)selectedItem;
                Release release   = this.collectionManager.GetReleaseById(releaseId);

                using (ReplayGainUpdateHelper updater = new ReplayGainUpdateHelper(this, this.SettingsManager, this.collectionSessionFactory))
                {
                    updater.RunOneRelease(release);
                }
            }
            else
            {
                Dialogs.Inform("Please select a release.");
            }
        }