private void MainWindow_OnClosed(object sender, EventArgs e) { // disconnect device before closing if ((_tCubeDCServo != null) && _tCubeDCServo.IsConnected) { _tCubeDCServo.Disconnect(true); } }
private void MainWindow_OnClosed(object sender, EventArgs e) { // disconnect device before closing if ((_tCubeDCServo != null) && _tCubeDCServo.IsConnected) { _tCubeDCServo.Disconnect(true); } }