Bug fix in LocalSettings related to Path/Meters, ver. 3.3.1934

This commit is contained in:
Milan Hanajik 2022-07-27 15:35:45 +02:00
parent 177d17cb81
commit 267a6557df
3 changed files with 14 additions and 6 deletions

View File

@ -124,7 +124,7 @@ namespace TBF
[XmlArrayAttribute("MetersColumnWidths")]
public int[] MetersColumnWidths;
[XmlIgnore]
public int MetersColumnCount { get { return (ProcMetersColWidths != null) ? ProcMetersColWidths.Length : 0; } }
public int MetersColumnCount { get { return (MetersColumnWidths != null) ? MetersColumnWidths.Length : 0; } }
[XmlArrayAttribute("HeatMetersColumnWidths")]
public int[] HeatMetersColumnWidths;

View File

@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.1928.0")]
[assembly: AssemblyFileVersion("3.3.1928.0")]
[assembly: AssemblyVersion("3.3.1934.0")]
[assembly: AssemblyFileVersion("3.3.1934.0")]

View File

@ -41,9 +41,17 @@ namespace TBF.UI.Bench.Paths
this.parentControl = parentControl;
/// Load the paths
MyItems = parent.Session.QueryOver<Config.Entities.MetersPath>()
.OrderBy(x => x.ItemNr).Asc
.List();
try
{
MyItems = parent.Session.QueryOver<Config.Entities.MetersPath>()
.OrderBy(x => x.ItemNr).Asc
.List();
}
catch (Exception exc)
{
log.ErrorFormat("QueryOver<MetersPath>() failed ... {0}", exc.Message);
MyItems = new List<Config.Entities.MetersPath>();
}
foreach (var path in MyItems) path.OriName = path.Name;