Beispiel #1
0
        private void HandleLoaded(object sender, RoutedEventArgs e)
        {
            if (_clockSource != null)
            {
                _clockSource.Dispose();
            }

            _clockSource = null;

            if (!this.IsInDesignMode())
            {
                _clockSource = new AudioClockDivider(_audioLink, METER_REFRESH_FREQ, id => HandleControlClockTick());
            }
        }
Beispiel #2
0
 public void Dispose()
 {
     if (_clockSource != null)
     {
         _clockSource.Dispose();
     }
 }