Verifico esistenza della configurazione
This commit is contained in:
@@ -361,6 +361,15 @@ Public Class FrmMain
|
||||
Debug.Assert(DirToReadCfg <> "")
|
||||
NomeFileCfg = DirToReadCfg & "\CameraMng.cfg"
|
||||
|
||||
If Not File.Exists(NomeFileCfg) Then
|
||||
Dim sTextMsg As String = String.Format("Nella cartella '{0}' non è stata trovata la configurazione '{1}'.", sDataRoot, NomeFileCfg)
|
||||
MessageBox.Show(sTextMsg, "Avvertenza", MessageBoxButtons.OK, MessageBoxIcon.Warning)
|
||||
If ModalitaNascosta Then
|
||||
Me.Close()
|
||||
End If
|
||||
Return
|
||||
End If
|
||||
|
||||
' default sovrascritti dalla letture del file cfg
|
||||
LensCalibType = 0
|
||||
SaveDir = "c:\CameraMng\Data\"
|
||||
|
||||
Reference in New Issue
Block a user