/// <summary> /// Disconnects from the Serial Communication /// </summary> public void Disconnect() { serial.Close(); form1.ChangeSaveButtonState(false); processData.sensorAnswer = false; UpdateStatus(this, new UpdateStatusEvent("Die Verbindung wurde getrennt")); form1.Hide(); connectDialog.Show(); connectDialog.BringToFront(); //Finalize EDF-File and end save process EndSave(); }