From e726416853c242fc3d6def105f5741600ef5d39d Mon Sep 17 00:00:00 2001 From: Nicola Pievani Date: Tue, 9 Apr 2024 16:43:13 +0200 Subject: [PATCH] Migliorata lettura errori per chiave di rete --- MySceneHost/MySceneHostVM.vb | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/MySceneHost/MySceneHostVM.vb b/MySceneHost/MySceneHostVM.vb index 5d70245..cf8f8d7 100644 --- a/MySceneHost/MySceneHostVM.vb +++ b/MySceneHost/MySceneHostVM.vb @@ -47,12 +47,27 @@ Public Class MySceneHostVM ' Problemi ' Se manca la chiave If OmagOFFICEMap.refMainWindowVM.MainWindowM.nKeyLevel = -1 Or OmagOFFICEMap.refMainWindowVM.MainWindowM.nKeyLevel = -2 Then - EgtOutLog("Missing Dongle") - ' Box di avviso chiave mancante : "Chiave non presente. \n Inserirla e riavviare il programma." "Errore" - Dim sText As String = EgtMsg(MSG_MISSINGKEYWD + 2) & vbCrLf & EgtMsg(MSG_MISSINGKEYWD + 3) - Dim sTitle As String = EgtMsg(MSG_MISSINGKEYWD + 1) + If Not EgtGetNetHwKey() Then + EgtOutLog("Missing Dongle") + ' Box di avviso chiave mancante : "Chiave non presente. \nInserirla e riavviare il programma." "Errore" + Dim sText As String = EgtMsg(10102) & vbCrLf & EgtMsg(10103) + Dim sTitle As String = EgtMsg(10101) + MessageBox.Show(sText, sTitle, MessageBoxButton.OK, MessageBoxImage.Error) + Else + EgtOutLog("NetDongle is full") + ' Box di avviso slot chiave di rete occupato : "Chiave di Rete completamente occupata. \n Uscire dal programma su un altro PC." "Errore" + Dim sText As String = EgtMsg(10110) & vbCrLf & EgtMsg(10111) + Dim sTitle As String = EgtMsg(10101) + MessageBox.Show(sText, sTitle, MessageBoxButton.OK, MessageBoxImage.Error) + End If + ' Se altrimenti manca il collegamento con la chiave di rete + ElseIf OmagOFFICEMap.refMainWindowVM.MainWindowM.nKeyLevel = -9 Then + EgtOutLog("Missing Link with Net Dongle") + ' Box di avviso chiave mancante : "Collegamento con la Chiave di rete non riuscito. \n Verificare la connessione." "Errore" + Dim sText As String = EgtMsg(10108) & vbCrLf & EgtMsg(10109) + Dim sTitle As String = EgtMsg(10101) MessageBox.Show(sText, sTitle, MessageBoxButton.OK, MessageBoxImage.Error) - ' Altrimenti manca la licenza + ' Altrimenti manca la licenza Else EgtOutLog("Problems with Licence") ' Box di avviso licenza con problemi : "Programma senza licenza. \n Caricala e riavvia il programma." "Errore"