public void btnRecord_Click(object sender, EventArgs e) { timer2.Start(); _measuringDevice.createLogFile(new XsString(textBoxFilename.Text)); _measuringDevice.startRecording(); btnRecord.Enabled = false; btnStop.Enabled = true; }