コード例 #1
0
        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.");
        }
コード例 #2
0
        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.");
        }