public void Dispose() { if (Connected) { _comm.Dispose(); } _comm = null; ActiveMeasurement = null; Disconnected = null; MeasurementEnded = null; MeasurementStarted = null; ReceiveStatus = null; StateChanged = null; SimpleCurveStartReceivingData = null; }