private void recordingButton_Click(object sender, EventArgs e) { if (isRecording) { temporaryStorage.stopRecording(); webView.GetScriptManager.CallFunction("isRecording", new object[] { false }); isRecording = false; experimentButton.Enabled = true; persistButton.Enabled = false; recordingButton.Text = "ЗАПИСЫВАТЬ"; return; } temporaryStorage.startRecording(); webView.GetScriptManager.CallFunction("isRecording", new object[] { true }); isRecording = true; experimentButton.Enabled = false; persistButton.Enabled = false; recordingButton.Text = "ОСТАНОВИТЬ"; }