FrmLutUpdate: - [Clear Display] locked if not connented

This commit is contained in:
Thomas Wiedebusch
2022-12-12 14:55:41 +01:00
parent bc0971525b
commit a357b4a663
3 changed files with 12 additions and 3 deletions
@@ -9,6 +9,7 @@ using System.Linq;
using System.Net;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Messaging;
using System.Security.Authentication;
using System.Text;
using System.Threading;
@@ -944,6 +945,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
/// <remarks date="2022-Nov-02" author="T.Wiedebusch">
/// - PcbId handling improved.
/// </remarks>
/// <remarks date="2022-Dec-12" author="T.Wiedebusch">
/// - PcbId unknown returns immediately.
/// </remarks>
private String GetPassword()
{
var url = ServiceUrls.GenesisGetPasswordServiceUrl();
@@ -954,7 +958,8 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
if (string.IsNullOrEmpty(PcbId))
{
//GetPcbId fills the PsbId property
GetPcbId();
if (string.IsNullOrEmpty(GetPcbId()))
return "";
}
url += PcbId;