예제 #1
0
        private void OpenSound_Click(object sender, RoutedEventArgs e)
        {
            List <SoundData> soundlists  = new List <SoundData>();
            SoundImport      soundImport = new SoundImport(soundlists, mapEditor);

            soundImport.ShowDialog();
            RefreshListBox();
        }
예제 #2
0
        private void Compression_Click(object sender, RoutedEventArgs e)
        {
            List <SoundData> soundlists = new List <SoundData>();

            foreach (SoundListItem item in MainListbox.SelectedItems)
            {
                string soundname = item.FileName;

                SoundData soundData = mapEditor.mapdata.soundDatas.Find((x) => x.path == soundname);
                if (soundData != null)
                {
                    soundlists.Add(soundData);
                }
            }
            if (soundlists.Count != 0)
            {
                SoundImport soundImport = new SoundImport(soundlists, mapEditor);
                soundImport.ShowDialog();
                RefreshListBox();
            }
        }