public static void Unload() { if (tempo != null) { tempo.Unload(); tempo = null; } if (stop != null) { stop.Unload(); stop = null; } if (tempoVolume != null) { tempoVolume.Unload(); tempoVolume = null; } if (volume != null) { volume.Unload(); volume = null; } }
/// <summary> /// Activate a bunch of gesture recognizers /// </summary> public static void Load() { Unload(); if (rightHandVolume) { tempoVolume = new TempoVolume(); } else { volume = new VolumeGesture(); } tempo = new TempoGesture(); stop = new StopGesture(); }