aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-05-04 05:54:03 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-05-04 05:54:03 +0300
commitbfcc978160dfdc00256cbbe11551cd32be459dda (patch)
treef618b1db2100d834c85f5efd59f17fcdf187fce0 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
parentba6f699293846839af4504dbfb600bf4d9e51606 (diff)
downloadTango-bfcc978160dfdc00256cbbe11551cd32be459dda.tar.gz
Tango-bfcc978160dfdc00256cbbe11551cd32be459dda.zip
Machine Manager Module !!
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();