private void button_recStop_Click(object sender, EventArgs e) { if (BVHFile != null) { BVHFile.closeBVHFile(); this.textBox_sensorStatus.Text = "Aufnahme gespeichert"; this.textBox_sensorStatus.BackColor = Color.White; BVHFile = null; } }
private void button_rec_Click(object sender, EventArgs e) { if (BVHFile == null && sensor != null) { this.textBox_sensorStatus.Text = "Initialisiere"; this.textBox_sensorStatus.BackColor = Color.Yellow; DateTime thisDay = DateTime.UtcNow; string txtFileName = thisDay.ToString("dd.MM.yyyy_HH.mm"); BVHFile = new writeBVH(txtFileName); BVHFile.setTextFeld(textFelder1); } }