aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2017-12-13 13:45:13 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2017-12-13 13:45:13 +0200
commit2c376ac3ae651dd6c6592cc4cbf72768dc97a93d (patch)
treeb1f4a2210ab94e023ea122330fd97e830ebdb9c7 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
parent5babd8f257e9e6623ef1b0f1b17bc30619cc62bd (diff)
downloadTango-2c376ac3ae651dd6c6592cc4cbf72768dc97a93d.tar.gz
Tango-2c376ac3ae651dd6c6592cc4cbf72768dc97a93d.zip
Moved Machine Studio to its own folder.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
new file mode 100644
index 000000000..b3b92b6ab
--- /dev/null
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+using Tango.DAL.Observables;
+
+namespace Tango.MachineStudio.UI
+{
+ /// <summary>
+ /// Interaction logic for App.xaml
+ /// </summary>
+ public partial class App : Application
+ {
+ public static ObservablesEntitiesAdapter DbAdapter { get; set; }
+
+ protected override void OnStartup(StartupEventArgs e)
+ {
+ base.OnStartup(e);
+
+ DbAdapter = ObservablesEntitiesAdapter.Instance;
+ }
+ }
+}