DataEntry.Camera (1) loads next image after 'Enter' key, (2) dealing with test parts fixed.

This commit is contained in:
Milan Hanajik
2020-11-06 14:33:31 +01:00
parent f1d46782d3
commit 483e2b4eb7
2 changed files with 40 additions and 8 deletions
+9 -1
View File
@@ -63,7 +63,15 @@ namespace TBF.UI.Bench.Paths
sharedButtons.DownClicked += downButton_Click;
/// Load the list of components from the database
TbfComponents = BenchControl.TbfComponents.LoadComponentsFromDB(Config.FluentCommon.CreateSession(Users.Entities.DBKind.Config));
try
{
TbfComponents = BenchControl.TbfComponents.LoadComponentsFromDB(Config.FluentCommon.CreateSession(Users.Entities.DBKind.Config));
}
catch
{
TbfComponents = new List<BenchControl.Generic.IComponent>();
MessageBox.Show("Error occured when loading components");
}
/// Find all master valves
Valves = BenchControl.GenericDevices.ValveBase.MasterValves(TbfComponents);