public EmotionsChartPresenter( IEmotionsChart chart, EmotionStateChannel stateChannel, SpectrumPowerChannel alphaLeft, SpectrumPowerChannel betaLeft, SpectrumPowerChannel alphaRight, SpectrumPowerChannel betaRight, EegIndexChannel indexChannel) { _stateChannel = stateChannel; _alphaLeft = alphaLeft; _betaLeft = betaLeft; _alphaRight = alphaRight; _betaRight = betaRight; _indexChannel = indexChannel; _chart = chart; _chart.Mode = EmotionBarMode.Wait; _stateChannel.LengthChanged += StateChannelLengthChanged; _indexChannel.LengthChanged += _indexChannel_LengthChanged; _alphaLeft.LengthChanged += _alphaLeft_LengthChanged; _betaLeft.LengthChanged += _betaLeft_LengthChanged; _alphaRight.LengthChanged += _alphaRight_LengthChanged; _betaRight.LengthChanged += _betaRight_LengthChanged; }
public EmotionsChartPresenter(IEmotionsChart chart, EmotionStateChannel channel) { _channel = channel; _chart = chart; _chart.Mode = EmotionBarMode.Wait; _channel.LengthChanged += _channel_LengthChanged; }