private void OpenSound_Click(object sender, RoutedEventArgs e) { List <SoundData> soundlists = new List <SoundData>(); SoundImport soundImport = new SoundImport(soundlists, mapEditor); soundImport.ShowDialog(); RefreshListBox(); }
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(); } }