From 583c1a2cf5cb065e3f17c1bfe0f4464b82e0ee4e Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 4 Jun 2018 12:33:38 +0300 Subject: Fixed some issues with Machine Studio. --- .../MachineStudio/Tango.MachineStudio.UI/App.config | 16 ++++++++++------ .../MachineStudio/Tango.MachineStudio.UI/App.xaml.cs | 8 ++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config index d51ecc2bb..004400788 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config @@ -15,6 +15,15 @@ + + + + + + + + + @@ -72,9 +81,4 @@ - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs index 568529534..2cc23f9e6 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs @@ -21,6 +21,7 @@ using Tango.MachineStudio.Common.Notifications; using Tango.MachineStudio.UI.ViewModels; using Tango.MachineStudio.UI.Views; using Tango.MachineStudio.Common; +using Tango.Core; namespace Tango.MachineStudio.UI { @@ -34,6 +35,13 @@ namespace Tango.MachineStudio.UI protected override void OnStartup(StartupEventArgs e) { + +#if DEBUG + CoreSettings.DefaultDataBaseSource = "localhost\\SQLEXPRESS"; +#else + CoreSettings.DefaultDataBaseSource = "twine01\\SQLTWINE"; +#endif + LogManager.RegisterLogger(new VSOutputLogger()); LogManager.RegisterLogger(new FileLogger()); -- cgit v1.3.1