private void editSounds_Click(object sender, EventArgs e) { SoundSelection soundSelection = new SoundSelection("Set sounds for action '" + current.name + "'", current.sounds); soundSelection.FormClosed += (object s, FormClosedEventArgs fcea) => { current.sounds = soundSelection.GetSelection(); }; soundSelection.ShowDialog(); }
private void onDeathSounds_Click(object sender, EventArgs e) { SoundSelection soundSelection = new SoundSelection("Set death sounds for '" + name.Text + "'", current.sounds.deathSounds); soundSelection.FormClosed += (object s, FormClosedEventArgs fcea) => { current.sounds.deathSounds = soundSelection.GetSelection(); }; soundSelection.ShowDialog(); }