EgtCAM5 :

- correzione Setup in essenza di suo direttorio di salvataggio nella macchina.
This commit is contained in:
Dario Sassi
2017-02-16 18:11:10 +00:00
parent 87a2572656
commit 5f65dd75fb
+12
View File
@@ -573,6 +573,14 @@ Namespace EgtCAM5
' Direttorio per attrezzaggi
Dim sDir As String = IniFile.m_sMachinesRoot & "\" & IniFile.m_sMachineName & "\SetUp"
Dim sPath As String = String.Empty
If Not Directory.Exists(sDir) Then
Try
Directory.CreateDirectory(sDir)
Catch ex As Exception
EgtOutLog("Error in SetupDir creation " & ex.ToString())
Return
End Try
End If
' Apertura dialogo di salvataggio
Dim SaveFileDialogView As New EgtWPFLib5.EgtSaveFileDialog
SaveFileDialogView.Title = EgtMsg(MSG_SETUP + 3) & " " & EgtMsg(MSG_SETUP + 1)
@@ -634,6 +642,10 @@ Namespace EgtCAM5
' Direttorio per attrezzaggi
Dim sDir As String = IniFile.m_sMachinesRoot & "\" & IniFile.m_sMachineName & "\SetUp"
Dim sPath As String = String.Empty
If Not Directory.Exists(sDir) Then
EgtOutLog("Error in SetupDir retrieve : directory not found")
Return
End If
' Apertura dialogo di salvataggio
Dim OpenFileDialogView As New EgtWPFLib5.EgtOpenFileDialog
OpenFileDialogView.Title = EgtMsg(MSG_SETUP + 4) & " " & EgtMsg(MSG_SETUP + 1)