Se fallisce lettura Args termino tutto subito

This commit is contained in:
Nicola Pievani
2024-10-04 13:40:13 +02:00
parent 621bd11b3d
commit 3fb5e636bf
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -983,6 +983,7 @@ Public Class AssemblyManagerVM
DdfFile.WriteDDFPart(OpenedAssName.SelAssembly.ListPartDoor(0).Door, sTempFile, True, False)
If OptionModule.AdjustDDT Then
DdfFile.WriteDDFPart(OpenedAssName.SelAssembly.ListPartDoor(0).Door, OptionModule.SaveFileNameFromArgs, True, False)
' TERMINO TUTTO SUBITO
End
End If
' aggiorno elenco quotature
+3 -2
View File
@@ -26,7 +26,7 @@ Class MainWindowV
' se è assente la chiave di protezione non mostro la finestra Launcher
If Map.refSceneManagerVM.bProtectKey Then
If Not IsNothing(m_args) Then
' leggo gli argomenti
' leggo gli argomenti: Il programma si chiude appena termina la scrittura del file DDF
Dim Items() As String = m_args(0).Split(";"c)
If Items.Length = 5 Then
' Avvio progetto - LauncherOpt.Open_last_project (1)
@@ -44,8 +44,9 @@ Class MainWindowV
Else
' blocco lettura dati
OptionModule.AdjustDDT = False
' TERMINO TUTTO SUBITO!
End
End If
End If
Map.refMainWindowVM.SetLauncher()
Map.refMainWindowVM.ShowErrorCompoLoad()