private static void Main() { ImageLoader.Instance.UseSvgImages = true; using var app = new WinApplication() { UseLightStyle = true, UseOldTemplates = false }; app.CreateCustomObjectSpaceProvider += (s, e) => e.ObjectSpaceProvider = new NonPersistentObjectSpaceProvider(); try { app.Setup(); app.Start(); } catch (Exception ex) { app.HandleException(ex); } }
private static void Main() { #if EASYTEST DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register(); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); EditModelPermission.AlwaysGranted = Debugger.IsAttached; var winApplication = new WinApplication(); // Refer to the https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112680.aspx help article for more details on how to provide a custom splash form. winApplication.SplashScreen = new DevExpress.ExpressApp.Win.Utils.DXSplashScreen("fdit_logo_350x392.png"); IsGrantedAdapter.Enable(XPOSecurityAdapterHelper.GetXpoCachedRequestSecurityAdapters()); if (ConfigurationManager.ConnectionStrings["ConnectionString"] != null) { winApplication.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; } #if EASYTEST if (ConfigurationManager.ConnectionStrings["EasyTestConnectionString"] != null) { winApplication.ConnectionString = ConfigurationManager.ConnectionStrings["EasyTestConnectionString"].ConnectionString; } #endif if (Debugger.IsAttached && winApplication.CheckCompatibilityType == CheckCompatibilityType.DatabaseSchema) { winApplication.DatabaseUpdateMode = DatabaseUpdateMode.UpdateDatabaseAlways; } try { winApplication.Setup(); winApplication.Start(); } catch (Exception e) { winApplication.HandleException(e); } }