/// <summary> /// Opens up the Save Dialog or Stops Recording /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void OpenSaveDialog(Object sender, EventArgs e) { if (!save) { form1.Enabled = false; saveDialog = new SaveDialog(); saveDialog.StartPosition = FormStartPosition.CenterScreen; saveDialog.Show(); saveDialog.Focus(); saveDialog.setController(this); } else { if (ShowDialog("Möchten Sie die Aufnahmne wirklich beenden?", "Aufnahmen beenden") == DialogResult.OK) { //Finalize EDF-File and end save process EndSave(); } } }
/// <summary> /// Opens up the Save Dialog or Stops Recording /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void OpenSaveDialog(Object sender, EventArgs e) { if (!save) { form1.Enabled = false; saveDialog = new SaveDialog(); saveDialog.StartPosition = FormStartPosition.CenterScreen; saveDialog.Show(); saveDialog.Focus(); saveDialog.setController(this); } else { if (ShowDialog("Möchten Sie die Aufnahmne wirklich beenden?", "Aufnahmen beenden") == DialogResult.OK) //Finalize EDF-File and end save process EndSave(); } }