示例#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());
            }
        }
示例#2
0
 public void Dispose()
 {
     if (_clockSource != null)
     {
         _clockSource.Dispose();
     }
 }