protected void OnClaveRhythmsBoxChanged(object sender, EventArgs e) { ComboBox box = sender as ComboBox; CLAVE_RHYTHMS_TYPE rhythmType = CSetup.GetEnumFromStr_ClaveRhythmsType(box.ActiveText); SoundLibraryInterface.SetInstrumentRhythm( (uint)INSTRUMENTS_TYPE.INSTRUMENT_CLAVE, (short)rhythmType); }