diff --git a/VeinMatching/VeinMatchingWindow.xaml.vb b/VeinMatching/VeinMatchingWindow.xaml.vb index 06dea36..d8729a7 100644 --- a/VeinMatching/VeinMatchingWindow.xaml.vb +++ b/VeinMatching/VeinMatchingWindow.xaml.vb @@ -468,10 +468,11 @@ Friend Module VeinMatching ' Salvo il pezzo su file temporaneo Dim sTmpDir As String = String.Empty If Not EgtGetTempDir(sTmpDir) Then Return False - Dim sTmpFile As String = sTmpDir & "\FlatPartVme.Nge" - EgtSaveObjToFile(nPartId, sTmpFile, NGE.BIN) - ' Carico il file nel VM - Dim bOk As Boolean = My.Computer.FileSystem.FileExists(sTmpFile) + Dim sTmpFile As String = sTmpDir & "\FlatPartVme.Nge" + EgtSetStatus(nPartId, 1) + EgtSaveObjToFile(nPartId, sTmpFile, NGE.BIN) + ' Carico il file nel VM + Dim bOk As Boolean = My.Computer.FileSystem.FileExists(sTmpFile) If bOk Then bOk = AddPart(sTmpFile, nPartId) ' Ne aggiorno la visualizzazione