aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-04 12:33:38 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-04 12:33:38 +0300
commit583c1a2cf5cb065e3f17c1bfe0f4464b82e0ee4e (patch)
treef4250ca17ef9810923644bfdd7f7f07062f8f2f2 /Software/Visual_Studio
parenteeba1f2f7571dc5bfc299444d99cf643677698c5 (diff)
downloadTango-583c1a2cf5cb065e3f17c1bfe0f4464b82e0ee4e.tar.gz
Tango-583c1a2cf5cb065e3f17c1bfe0f4464b82e0ee4e.zip
Fixed some issues with Machine Studio.
Diffstat (limited to 'Software/Visual_Studio')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config16
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs8
-rw-r--r--Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs2
-rw-r--r--Software/Visual_Studio/Tango.Integration/IntegrationSettings.cs2
-rw-r--r--Software/Visual_Studio/Tango.Stubs/StubBase.cs4
5 files changed, 22 insertions, 10 deletions
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 @@
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
</providers>
</entityFramework>
+
+ <system.data>
+ <DbProviderFactories>
+ <remove invariant="System.Data.SQLite.EF6" />
+ <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+ <remove invariant="System.Data.SQLite" />
+ <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+ </DbProviderFactories>
+ </system.data>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
@@ -72,9 +81,4 @@
</dependentAssembly>
</assemblyBinding>
</runtime>
-<system.data>
- <DbProviderFactories>
- <remove invariant="System.Data.SQLite.EF6" />
- <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
- <remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories>
- </system.data></configuration> \ No newline at end of file
+</configuration> \ 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());
diff --git a/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs b/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs
index 0ff636493..4c703a96b 100644
--- a/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs
+++ b/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs
@@ -77,7 +77,7 @@ namespace Tango.BL
}
else
{
- return new ObservablesContext(ComposeConnectionString(source));
+ return new ObservablesContext(source);
}
}
diff --git a/Software/Visual_Studio/Tango.Integration/IntegrationSettings.cs b/Software/Visual_Studio/Tango.Integration/IntegrationSettings.cs
index 778a03d7b..03c112f3c 100644
--- a/Software/Visual_Studio/Tango.Integration/IntegrationSettings.cs
+++ b/Software/Visual_Studio/Tango.Integration/IntegrationSettings.cs
@@ -37,7 +37,7 @@ namespace Tango.Integration
ExternalBridgeServicePort = 1984;
ExternalBridgeServiceDiscoveryPort = 8888;
EmbeddedDeviceName = "Tango USB Serial Port";
- FilterExternalBridgeUsbMachines = true;
+ FilterExternalBridgeUsbMachines = false;
}
}
}
diff --git a/Software/Visual_Studio/Tango.Stubs/StubBase.cs b/Software/Visual_Studio/Tango.Stubs/StubBase.cs
index 2d591168a..61a2f63c5 100644
--- a/Software/Visual_Studio/Tango.Stubs/StubBase.cs
+++ b/Software/Visual_Studio/Tango.Stubs/StubBase.cs
@@ -85,12 +85,12 @@ namespace Tango.Stubs
public static List<Type> GetAvailableRequestStubs()
{
- return typeof(MessageFactory).Assembly.GetTypes().Where(x => x.Namespace.Contains("Stubs") && x.Name.Contains("Request") && !x.Name.Contains("Reflection")).ToList();
+ return typeof(MessageFactory).Assembly.GetTypes().Where(x => x.Namespace != null && x.Namespace.Contains("Stubs") && x.Name.Contains("Request") && !x.Name.Contains("Reflection")).ToList();
}
public static List<Type> GetAvailableRequestResponseStubs()
{
- return typeof(MessageFactory).Assembly.GetTypes().Where(x => x.Namespace.Contains("Stubs") && !x.Name.Contains("Reflection")).ToList();
+ return typeof(MessageFactory).Assembly.GetTypes().Where(x => x.Namespace != null && x.Namespace.Contains("Stubs") && !x.Name.Contains("Reflection")).ToList();
}
}
}