aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
diff options
context:
space:
mode:
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.cs15
1 files changed, 15 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
index 7eab5066a..9f98b1897 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
@@ -93,6 +93,21 @@ namespace Tango.MachineStudio.UI
//add current theme
MachineStudioTheme wTheme = settings.Theme;
+ try
+ {
+ Z.EntityFramework.Extensions.LicenseManager.AddLicense("4578;101-twine-s.com", "9d23b66f-1101-b253-7f8a-59ae011b2ee8");
+
+ string licenseErrorMessage;
+ if (!Z.EntityFramework.Extensions.LicenseManager.ValidateLicense(out licenseErrorMessage))
+ {
+ throw new Exception(licenseErrorMessage);
+ }
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, "Error performing EF extensions license setup.");
+ }
+
base.OnStartup(e);
exceptionTrapper = new WpfGlobalExceptionTrapper();