FrmLutUpdate: - [Clear Display] locked if not connented
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user