Esempio n. 1
0
 private void TimerTick(object sender, EventArgs e)
 {
     trainingBtn.Text = "Training Complete";
     MindwaveConnectionManager.StopCollectingRelaxTrainingSample();
     lockTraining          = false;
     relaxTrainingComplete = true;
 }
Esempio n. 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     MindwaveConnectionManager.SetFormReference(this);
     MindwaveConnectionManager.Connect();
     picture.Visible = false;
     ToggleDebugMode();
 }
Esempio n. 3
0
 private void ClickTimerTick(object sender, EventArgs e)
 {
     clickTrainingBtn.Text = "Training Complete - Click to Rest";
     MindwaveConnectionManager.StopCollectingClickTrainingSample();
     lockTraining          = false;
     clickTrainingComplete = true;
     picture.Visible       = false;
 }
Esempio n. 4
0
        private void trainingBtn_Click(object sender, EventArgs e)
        {
            if (!lockTraining && !relaxTrainingComplete)
            {
                lockTraining = true;
                MindwaveConnectionManager.StartCollectingRelaxTrainingSample();

                var timer = new Timer();
                timer.Interval = 3000;
                timer.Tick    += new EventHandler(TimerTick);
                timer.Start();
                trainingBtn.Text = "Training in Progess";
            }
        }
Esempio n. 5
0
        private void clickTrainingBtn_Click(object sender, EventArgs e)
        {
            if (!lockTraining)// && !clickTrainingComplete)
            {
                lockTraining = true;
                MindwaveConnectionManager.StartCollectingClickTrainingSample();

                var timer = new Timer();
                timer.Interval = 2000;
                timer.Tick    += new EventHandler(ClickTimerTick);
                timer.Start();
                clickTrainingBtn.Text = "Training in Progess";
                picture.Visible       = true;
            }
        }
Esempio n. 6
0
 private void decMagMargValBtn_Click(object sender, EventArgs e)
 {
     MindwaveConnectionManager.AdjustMagnitudeMargin(false);
 }
Esempio n. 7
0
 private void UIForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     MindwaveConnectionManager.CloseConnector();
 }
Esempio n. 8
0
 private void decreaseMarginBtn_Click(object sender, EventArgs e)
 {
     MindwaveConnectionManager.AdjustAverageMargin(false);
 }
Esempio n. 9
0
 private void sendEnterBtn_Click(object sender, EventArgs e)
 {
     MindwaveConnectionManager.TieIntoWindow();
 }