MCAEmotiv.Interop.EEGDataListener.SourceConnected C# (CSharp) Method

SourceConnected() public method

Invokes the connected action
public SourceConnected ( IEEGDataSource source ) : void
source IEEGDataSource
return void
        public void SourceConnected(IEEGDataSource source)
        {
            if (this.source == null)
                this.source = source;
            else if (this.source != source)
                throw new Exception("Listener connected to multiple sources!");

            if (this.onSourceConnected != null)
                this.invoker.BeginInvoke(() => this.onSourceConnected(source));
        }