Ejemplo n.º 1
0
 private void HandleUnloaded(object sender, RoutedEventArgs e)
 {
     if (this is IClockListener)
     {
         _audioLink.DetachClockListener(this as IClockListener);
     }
     if (this is IAudioSource)
     {
         // May not be attached, but that's ok.
         _audioLink.DetachSource(this as IAudioSource);
     }
 }