private void soundToolStripMenuItem_Click(object sender, EventArgs e) { if (FileIsOpen) { foreach (string path in GetSelectedSoundPaths()) { SoundFile file = OpenedFile.Sounds.Find(x => x.Filepath == path); if (file != null) { SoundSettingsForm form = new SoundSettingsForm(file); if (form.ShowDialog() == DialogResult.OK) { form.UpdateSound(file); } } UpdateSoundList(); } } }
public void UpdateSound(SoundFile file) { file.Name = SoundName; file.Description = SoundDescription; file.Filepath = SoundPath; }
public SoundSettingsForm(SoundFile file) { SoundName = file.Name; SoundDescription = file.Description; SoundPath = file.Filepath; }