public void RefreshBGMFilesList() { Sm4shSoundTools.RefreshSoundFiles(); List <string> soundFiles = Sm4shSoundTools.SoundFiles; SoundEntryCollection.CleanBGMDatabase(true); foreach (string soundFile in soundFiles) { if (_SoundEntryCollection.SoundEntriesBGMsPerName.ContainsKey(soundFile)) { continue; } SoundEntryCollection.CreateBGMEntry(soundFile); } _BGMManagement.RefreshBGMTextArea(); LogHelper.Info("Sm4shMusic: BGM List refreshed."); }
private void refreshBGMFilesListToolStripMenuItem_Click(object sender, EventArgs e) { Sm4shSoundTools.RefreshSoundFiles(); List <string> soundFiles = Sm4shSoundTools.SoundFiles; SoundEntryCollection.CleanBGMDatabase(true); foreach (string soundFile in soundFiles) { if (_SoundEntryCollection.SoundEntriesBGMsPerName.ContainsKey(soundFile)) { continue; } SoundEntryCollection.CreateBGMEntry(soundFile); } _BGMManagement.RefreshBGMTextArea(); LogHelper.Info("Sm4shMusic: BGM List refreshed."); }