コード例 #1
0
 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; }
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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();
 }
コード例 #4
0
 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;
     }
 }