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
+2 -2
View File
@@ -14,5 +14,5 @@ using System.Reflection;
//[assembly: AssemblyVersion("1.2.*.0")]
[assembly: AssemblyVersion("2.3.2.*")]
[assembly: AssemblyFileVersion("2.3.2.0")]
[assembly: AssemblyVersion("2.3.3.*")]
[assembly: AssemblyFileVersion("2.3.3.0")]
@@ -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;
+4
View File
@@ -95,6 +95,7 @@ namespace Xylem.Common.Ui.GenesisToolBox
SetControlDownloadsLocked();
btnStopFwUpdate.Enabled = false;
btnOpenLutFile.Enabled = true;
btnClearDisplay.Enabled = false;
tbxPcbId.Visible = false;
}
@@ -143,6 +144,7 @@ namespace Xylem.Common.Ui.GenesisToolBox
btnOpenLutFile.Enabled = false;
btnDownloadLutFile.Enabled = false;
btnClearDisplay.Enabled = false;
btnStopFwUpdate.Enabled = true;
}
@@ -154,6 +156,7 @@ namespace Xylem.Common.Ui.GenesisToolBox
btnDownloadLutFile.Enabled = true;
btnStopFwUpdate.Enabled = false;
btnClearDisplay.Enabled = true;
}
private void SetControlsDownloadEnabled()
{
@@ -162,6 +165,7 @@ namespace Xylem.Common.Ui.GenesisToolBox
btnDownloadLutFile.Enabled = true;
btnStopFwUpdate.Enabled = false;
btnClearDisplay.Enabled = true;
}
#endregion