private void bt_empatica_Click(object sender, EventArgs e) { //empaticaForm = new Form_Empatica(); //empaticaForm.m_empaticadevicename = textBox_empatica.Text; //empaticaForm.Show(); if (!m_empaticarunning) { try { if (checkBox_empatica_0.Checked) { //AsynchronousClient.StartClient(checkBox_empatica_0.Text); m_empatica_0.StartClient(checkBox_empatica_0.Text); } if (checkBox_empatica_1.Checked) { //AsynchronousClient.StartClient(checkBox_empatica_1.Text); m_empatica_1.StartClient(checkBox_empatica_0.Text); } AsynchronousClient.StartClient(textBox_empatica.Text); bt_empatica.Text = "Stop Empatica"; } catch { Console.WriteLine("Empatica is not running correctly"); return; } } else { if (checkBox_empatica_0.Checked) { //AsynchronousClient.StartClient(checkBox_empatica_0.Text); m_empatica_0.StopClient(); } if (checkBox_empatica_1.Checked) { //AsynchronousClient.StartClient(checkBox_empatica_1.Text); m_empatica_1.StopClient(); } AsynchronousClient.StopClient(); bt_empatica.Text = "Start Empatica"; } m_empaticarunning = !m_empaticarunning; }
private void bt_empatica_Click(object sender, EventArgs e) { //empaticaForm = new Form_Empatica(); //empaticaForm.m_empaticadevicename = textBox_empatica.Text; //empaticaForm.Show(); if (!m_empaticarunning) { AsynchronousClient.StartClient(textBox_empatica.Text); bt_empatica.Text = "Stop Empatica"; } else { AsynchronousClient.StopClient(); bt_empatica.Text = "Start Empatica"; } m_empaticarunning = !m_empaticarunning; }
private void Form_Empatica_Load(object sender, EventArgs e) { AsynchronousClient.StartClient(); }