Ejemplo n.º 1
0
        private void itemSounds_Click(object sender, EventArgs e)
        {
            SoundSelection soundSelection = new SoundSelection("Set sounds for item '" + name.Text + "'", current.sounds);

            soundSelection.FormClosed += (object s, FormClosedEventArgs fcea) => {
                current.sounds = soundSelection.GetSelection();
            };

            soundSelection.ShowDialog();
        }
 bool SoundEnable(SoundSelection type)
 {
     return(_soundType == SoundSelection.None || _soundType == SoundSelection.Main || _soundType == type);
 }