Esempio n. 1
0
    protected void OnCowbellButtonClicked(object sender, EventArgs e)
    {
        bool isEnabled =
            SoundLibraryInterface.IsInstrumentEnabled((uint)INSTRUMENTS_TYPE.INSTRUMENT_COWBELL);

        SoundLibraryInterface.SetInstrumentEnabled(
            (uint)INSTRUMENTS_TYPE.INSTRUMENT_COWBELL,
            !isEnabled);
    }
Esempio n. 2
0
    protected void OnBongosButtonClicked(object sender, EventArgs e)
    {
        Button tmpButton = sender as Button;
        bool   isEnabled =
            SoundLibraryInterface.IsInstrumentEnabled((uint)INSTRUMENTS_TYPE.INSTRUMENT_BONGOS);

        tmpButton.ModifyBg(StateType.Normal, new Gdk.Color(255, 1, 1));
        SoundLibraryInterface.SetInstrumentEnabled(
            (uint)INSTRUMENTS_TYPE.INSTRUMENT_BONGOS,
            !isEnabled);
    }