diff --git a/Common/Hardware/WaterMeter/Genesis/MockGenesis/MockGenesis.cs b/Common/Hardware/WaterMeter/Genesis/MockGenesis/MockGenesis.cs index 2087dfb7..bd49f388 100644 --- a/Common/Hardware/WaterMeter/Genesis/MockGenesis/MockGenesis.cs +++ b/Common/Hardware/WaterMeter/Genesis/MockGenesis/MockGenesis.cs @@ -97,7 +97,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis /// private const String RootMockFwPath = "MockFwExamples"; - /// + /// /// Mock object can overwrite PcbId for test purposes and set password to null to avoid /// usage of wrong password and lock of the device trying to log in with the wrong password /// @@ -108,6 +108,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis base.PcbId = value; ClearPassword(); } + get => base.PcbId; } /// @@ -116,6 +117,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis public new String LutCrc { set => base.LutCrc = value; + get => base.LutCrc; } /// @@ -124,6 +126,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis public new String StrCoreRevision { set => base.StrCoreRevision = value; + get => base.StrCoreRevision; } /// @@ -141,6 +144,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis public new Int32? RadioFrequencyMhz { set => base.RadioFrequencyMhz = value; + get => base.RadioFrequencyMhz; } /// @@ -149,6 +153,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis public new UInt32? InstalledFwVersion { set => base.InstalledFwVersion = value; + get => base.InstalledFwVersion; } /// @@ -198,7 +203,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis /// /// Mock object can overwrite login status for test purposes /// - private new Boolean IsLoggedOn + public new Boolean IsLoggedOn { set => base.IsLoggedOn = value; get => base.IsLoggedOn; @@ -213,7 +218,6 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis /// Fw package path relative to solution main folder. /// private readonly String _mockFwPackageRootPath; - #endregion ----------------------------- Properties ----------------------------------------------------------- #region --------------------------------- Default package description file ------------------------------------ diff --git a/Common/LaaPackages b/Common/LaaPackages index 41c1163d..ffa0abaa 160000 --- a/Common/LaaPackages +++ b/Common/LaaPackages @@ -1 +1 @@ -Subproject commit 41c1163d102dbb63572e60c6ffd501e1765d848c +Subproject commit ffa0abaa0448ba22350982cd3d3560ce1eaab42a diff --git a/Common/Ui/GenesisToolBox/frmSetup.cs b/Common/Ui/GenesisToolBox/frmSetup.cs index 441d36d1..30ddc036 100644 --- a/Common/Ui/GenesisToolBox/frmSetup.cs +++ b/Common/Ui/GenesisToolBox/frmSetup.cs @@ -53,6 +53,11 @@ namespace Xylem.Common.Ui.GenesisToolBox "Genesis", ProgramConfig.SerialConfigFileName); _offlinePwdPathName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Genesis", ProgramConfig.OfflineInfoFile); + if (!File.Exists(_offlinePwdPathName)) + { + _listOfOfflinePasswords.Add(new OfflinePasswordItem("", "")); + File.WriteAllText(_offlinePwdPathName, JsonConvert.SerializeObject(_listOfOfflinePasswords)); + } //build header of data table for reference by name _slotConfigDataTable.Columns.Add(SlotString, typeof(String)); _slotConfigDataTable.Columns.Add(StreamingPortString, typeof(String));