From bfcc978160dfdc00256cbbe11551cd32be459dda Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 4 May 2021 05:54:03 +0300 Subject: Machine Manager Module !! --- .../MachineStudio/Tango.MachineStudio.UI/App.xaml.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs') 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(); -- cgit v1.3.1