protected virtual void OnFrequencyDetected(FrequencyEventArgs args)
 {
     if (FrequencyDetected != null)
     {
         FrequencyDetected(this, args);
     }
 }
Exemple #2
0
 private void _audioSystem_FrequencyDetected(object sender, FrequencyEventArgs e)
 {
     if (FrequencyDetected != null)
     {
         FrequencyDetected(this, e);
     }
 }
		private void _audio_FrequencyDetected(object sender, FrequencyEventArgs e)
		{
			if (e.Frequency > 0) {
				var box = FindCheckBox(e.Index.ToString());
				TimeSpan t = TimeSpan.MinValue;
				freqs.TryRemove(e.Index, out t);
				freqs.TryAdd(e.Index, e.Time);
			}
		}
		protected virtual void OnFrequencyDetected(FrequencyEventArgs args)
		{
			if (FrequencyDetected != null) {
				FrequencyDetected(this, args);
			}
		}
Exemple #5
0
        private void _audio_FrequencyDetected(object sender, FrequencyEventArgs e)
        {
            if (!detectedActions.ContainsKey(e.Index))
                detectedActions.TryAdd(e.Index, new ConcurrentBag<TimeSpan>() {e.Time});
            else {
                ConcurrentBag<TimeSpan> spans = new ConcurrentBag<TimeSpan>();

                detectedActions.TryGetValue(e.Index, out spans);
                ConcurrentBag<TimeSpan> spans2 = spans;

                spans.Add(e.Time);
                detectedActions.TryUpdate(e.Index, spans, spans2);
            }

            if (this.InvokeRequired)
                this.Invoke(new Vixen.Delegates.GenericValue(_audio_FrequencyDetectedSetText), e);
            else
                _audio_FrequencyDetectedSetText(e);
        }
Exemple #6
0
 private void _audioSystem_FrequencyDetected(object sender, FrequencyEventArgs e)
 {
     if (FrequencyDetected != null) {
         FrequencyDetected(this, e);
     }
 }