aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs
index 233751ddb..554bd704c 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs
@@ -128,10 +128,8 @@ namespace Tango.PPC.UI.PPCApplication
var settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); ;
- using (ObservablesContext db = ObservablesContext.CreateDefault())
- {
- Machine = db.Machines.SingleOrDefault(x => x.SerialNumber == settings.MachineSerialNumber);
- }
+ ObservablesEntitiesAdapter.Instance.Initialize();
+ Machine = ObservablesEntitiesAdapter.Instance.Machines.FirstOrDefault();
});
ApplicationStarted?.Invoke(this, new EventArgs());