static void Main() { DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register(); WindowsFormsSettings.LoadApplicationSettings(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); #if !NETCOREAPP3_1 EditModelPermission.AlwaysGranted = System.Diagnostics.Debugger.IsAttached; #endif if (Tracing.GetFileLocationFromSettings() == FileLocation.CurrentUserApplicationDataFolder) { Tracing.LocalUserAppDataPath = Application.LocalUserAppDataPath; } Tracing.Initialize(); var winApplication = new TestWinApplication(); winApplication.ConfigureConnectionString(); try{ winApplication.Setup(); if (!AppDomain.CurrentDomain.UseNetFramework()) { ((IModelApplicationOptionsSkin)winApplication.Model.Options).Skin = "The Bezier"; } ((SecurityStrategyComplex)winApplication.Security).IsGranted(new AdministrativePermissionRequest()); winApplication.Start(); } catch (Exception e) { winApplication.HandleException(e); } }
static void Main() { AppDomain.CurrentDomain.Patch(harmony => { harmony.Patch(typeof(ApplicationModelManager).Method("CollectModelStores", Flags.StaticAnyVisibility), postfix: new HarmonyMethod(typeof(Program), nameof(CollectModelStores))); }); DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register(); WindowsFormsSettings.LoadApplicationSettings(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); #if !NETCOREAPP3_1 DevExpress.ExpressApp.Security.EditModelPermission.AlwaysGranted = System.Diagnostics.Debugger.IsAttached; #endif if (Tracing.GetFileLocationFromSettings() == FileLocation.CurrentUserApplicationDataFolder) { Tracing.LocalUserAppDataPath = Application.LocalUserAppDataPath; } Tracing.Initialize(); var winApplication = new TestWinApplication(); winApplication.ConfigureConnectionString(); try{ winApplication.Setup(); if (!AppDomain.CurrentDomain.UseNetFramework()) { ((IModelApplicationOptionsSkin)winApplication.Model.Options).Skin = "The Bezier"; } winApplication.Start(); } catch (Exception e) { winApplication.HandleException(e); } }
static void Main() { DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register(); WindowsFormsSettings.LoadApplicationSettings(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); EditModelPermission.AlwaysGranted = System.Diagnostics.Debugger.IsAttached; if (Tracing.GetFileLocationFromSettings() == FileLocation.CurrentUserApplicationDataFolder) { Tracing.LocalUserAppDataPath = Application.LocalUserAppDataPath; } Tracing.Initialize(); var winApplication = new TestWinApplication(); try { winApplication.Setup(); winApplication.Start(); } catch (Exception e) { winApplication.HandleException(e); } }