// Invoke the Changed event; called whenever list changes protected virtual void OnPresetSelected(PresetsEventArgs e) { if (PresetSelected != null) { PresetSelected(this, e); } }
void presets_PresetSelected(object sender, PresetsEventArgs e) { Log.Debug("PresetTouched", "Touched Preset " + e.Preset); selectedPreset = e.Preset - 1; dpad.Rotated = presets[selectedPreset].DPadRotated; }