GTB: - message if 'offline pwd' used

This commit is contained in:
Thomas Wiedebusch
2025-10-21 13:47:45 +02:00
parent 7f07629512
commit bf797117bd
+11 -2
View File
@@ -106,7 +106,12 @@ namespace Xylem.Common.Ui.GenesisToolBox
lblConnectPcb.Text = StrNotConnected;
lblConnectPcb.ForeColor = Color.Red;
lblWaitingForMeterResponse.Visible = false;
tbxDateTime.Text = "";
tbxMeterFw.Text = "";
tbxMeterLutCrc.Text = "";
tbxMeterMeterSize.Text = "";
tbxRadio.Text = "";
tbxRegion.Text = "";
SetCordonelAccessLocked();
tbxPcbId.Visible = false;
btnConnect.Focus();
@@ -329,7 +334,11 @@ namespace Xylem.Common.Ui.GenesisToolBox
string.IsNullOrEmpty(pwdContainer.Skeleton)))
{
LowLevelActionControl(false);
LogErrorText("ERROR: Login failed and passwords cannot be acquired from the database!");
if (!_currentGenesis.UseOfflinePasswords)
LogErrorText("ERROR: Login failed and passwords cannot be acquired from the database!");
else
LogErrorText("ERROR: Login with 'offline password' failed!");
LogText(StrSeparator);
return;
}