private void button2_Click(object sender, EventArgs e) { /* * if (runSecondTestChkBox.Checked) * { * EEGDataReading r = new EEGDataReading(true); * RestingForm rf = new RestingForm(); * rf.Show(); * return; * } */ if (!collectingData) { fusionData.Reset(); DataReading.ResetTimers(); //StartTestFromCollector(); eegCollect.StartCollect(); gsrCollect.StartCollecting(); hrCollect.StartCollecting(); faceCollect.CollectData = true; button2.Text = "STOP COLLECTING"; collectingData = true; collectingDataPanel.BackColor = Color.Green; if (runSecondTestChkBox.Checked) { RestingForm rf = new RestingForm(); rf.Show(); } } else { eegCollect.StopCollect(); gsrCollect.StopCollecting(); hrCollect.StopCollecting(); faceCollect.CollectData = false; button2.Text = "START COLLECTING"; collectingData = true; collectingDataPanel.BackColor = Color.Red; if (runSecondTestChkBox.Checked) { fusionData.ExportGRF(); } //DeleteStartFile(); } }
private void button2_Click(object sender, EventArgs e) { /* if (runSecondTestChkBox.Checked) { EEGDataReading r = new EEGDataReading(true); RestingForm rf = new RestingForm(); rf.Show(); return; } */ if (!collectingData) { fusionData.Reset(); DataReading.ResetTimers(); //StartTestFromCollector(); eegCollect.StartCollect(); gsrCollect.StartCollecting(); hrCollect.StartCollecting(); faceCollect.CollectData = true; button2.Text = "STOP COLLECTING"; collectingData = true; collectingDataPanel.BackColor = Color.Green; if (runSecondTestChkBox.Checked) { RestingForm rf = new RestingForm(); rf.Show(); } } else { eegCollect.StopCollect(); gsrCollect.StopCollecting(); hrCollect.StopCollecting(); faceCollect.CollectData = false; button2.Text = "START COLLECTING"; collectingData = true; collectingDataPanel.BackColor = Color.Red; if (runSecondTestChkBox.Checked) { fusionData.ExportGRF(); } //DeleteStartFile(); } }