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

SourceDisconnected() public method

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

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