public ScheduleTimerBase()
 {
     _Timer           = new global::System.Timers.Timer();
     _Timer.AutoReset = false;
     _Timer.Elapsed  += new ElapsedEventHandler(Timer_Elapsed);
     _Jobs            = new TimerJobList();
     _LastTime        = DateTime.MaxValue;
 }
Exemple #2
0
 public override void InitializeComponent(ICore core)
 {
     this.Timer           = new global::System.Timers.Timer();
     this.Timer.AutoReset = false;
     this.Timer.Elapsed  += this.OnElapsed;
     PlaybackStateNotifier.IsPlayingChanged += this.OnIsPlayingChanged;
     base.InitializeComponent(core);
     this.Update();
 }
Exemple #3
0
 protected override void OnDisposing()
 {
     PlaybackStateNotifier.Notify -= this.OnNotify;
     lock (this.SyncRoot)
     {
         if (this.Timer != null)
         {
             this.Timer.Elapsed -= this.OnElapsed;
             this.Timer.Dispose();
             this.Timer = null;
         }
     }
     if (this.ScalingFactor != null)
     {
         this.ScalingFactor.ValueChanged -= this.OnValueChanged;
     }
     if (this.Bars != null)
     {
         this.Bars.ValueChanged -= this.OnValueChanged;
     }
     if (this.ShowPeaks != null)
     {
         this.ShowPeaks.ValueChanged -= this.OnValueChanged;
     }
     if (this.HighCut != null)
     {
         this.HighCut.ValueChanged -= this.OnValueChanged;
     }
     if (this.Smooth != null)
     {
         this.Smooth.ValueChanged -= this.OnValueChanged;
     }
     if (this.SmoothingFactor != null)
     {
         this.SmoothingFactor.ValueChanged -= this.OnValueChanged;
     }
     if (this.HoldInterval != null)
     {
         this.HoldInterval.ValueChanged -= this.OnValueChanged;
     }
     if (this.UpdateInterval != null)
     {
         this.UpdateInterval.ValueChanged -= this.OnValueChanged;
     }
     if (this.FFTSize != null)
     {
         this.FFTSize.ValueChanged -= this.OnValueChanged;
     }
     if (this.Amplitude != null)
     {
         this.Amplitude.ValueChanged -= this.OnValueChanged;
     }
 }
Exemple #4
0
 public void Stop()
 {
     lock (SyncRoot)
     {
         if (this.Timer != null)
         {
             this.Timer.Stop();
             this.Timer.Elapsed -= this.OnElapsed;
             this.Timer.Dispose();
             this.Timer = null;
         }
     }
 }
Exemple #5
0
 protected override void OnDisposing()
 {
     PlaybackStateNotifier.IsPlayingChanged -= this.OnIsPlayingChanged;
     lock (this.SyncRoot)
     {
         if (this.Timer != null)
         {
             this.Timer.Elapsed -= this.OnElapsed;
             this.Timer.Dispose();
             this.Timer = null;
         }
     }
     base.OnDisposing();
 }
Exemple #6
0
 public void Start()
 {
     lock (SyncRoot)
     {
         if (this.Timer == null)
         {
             this.Timer           = new global::System.Timers.Timer();
             this.Timer.Interval  = INTERVAL;
             this.Timer.AutoReset = false;
             this.Timer.Elapsed  += this.OnElapsed;
             this.Timer.Start();
         }
     }
 }
 protected override void OnDisposing()
 {
     if (this.Output != null)
     {
         this.Output.IsStartedChanged -= this.OnCanGetDataChanged;
     }
     PlaybackStateNotifier.Notify -= this.OnNotify;
     lock (this.SyncRoot)
     {
         if (this.Timer != null)
         {
             this.Timer.Elapsed -= this.OnElapsed;
             this.Timer.Dispose();
             this.Timer = null;
         }
     }
     base.OnDisposing();
 }
 public VisualizationBase()
 {
     this.Timer           = new global::System.Timers.Timer();
     this.Timer.AutoReset = false;
     this.Timer.Elapsed  += this.OnElapsed;
 }
Exemple #9
0
 public TimerImpl(TimeSpan interval)
 {
     _timer          = new global::System.Timers.Timer(interval.TotalMilliseconds);
     _timer.Elapsed += Timer_Elapsed;
 }
Exemple #10
0
 public SpectrumRenderer()
 {
     this.Timer           = new global::System.Timers.Timer();
     this.Timer.AutoReset = false;
     this.Timer.Elapsed  += this.OnElapsed;
 }