public EEGController_MindWave(EventModel_MindWave e)
 {
     _event     = e;
     _connector = new Connector();
     SetUpConnector();
     ComPort = Globals.DefaultPort;
 }
        private void Init()
        {
            _event = new EventModel_MindWave()
            {
                MainScreen = this
            };

            _settingsManager        = new SettingsManager();
            _event.PropertyChanged += Event_PropertyChanged;
            DataContext             = _event;
            _eegController          = new EEGController_MindWave(_event);
            _brickController        = new BrickController(this, _eegController, _event);
            _event.ComPorts         = SerialPort.GetPortNames().ToList();
            this.KeyDown           += new KeyEventHandler(MainWindow_MindWave_KeyDown);

            // set-up buttons
            _event.ConnHs    = true;
            _event.DissHs    = false;
            _event.ConnBrick = true;
            _event.DissBrick = false;

            _settingsManager.ReadSettings(_event);
        }
Exemplo n.º 3
0
 public BrickController(MainWindow_MinWave w, EEGController_MindWave ec, EventModel_MindWave ev)
 {
     _mainWindow            = w;
     _eegControllerMindWave = ec;
     _event = ev;
 }