private void buttonRecordStop_Click(object sender, EventArgs e) { if (BVHFile != null) { BVHFile.closeBVHFile(); this.textBoxSensorStatus.Text = "Запись сохраняется..."; this.textBoxSensorStatus.BackColor = Color.White; BVHFile = null; } }
private void buttonRecord_Click(object sender, EventArgs e) { if (BVHFile == null && sensor != null) { this.textBoxSensorStatus.Text = "Инициализация..."; this.textBoxSensorStatus.BackColor = Color.Yellow; DateTime thisDay = DateTime.UtcNow; string txtFileName = thisDay.ToString("dd.MM.yyyy_HH.mm"); BVHFile = new WriteBVH(txtFileName); BVHFile.setTextField(textField); } }