Bug fix in LocalSettings related to Path/Meters, ver. 3.3.1934
This commit is contained in:
parent
177d17cb81
commit
267a6557df
@ -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;
|
||||
|
||||
@ -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")]
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user