static void Main() { #if EASYTEST DevExpress.ExpressApp.EasyTest.WinAdapter.RemotingRegistration.Register(4100); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); EditModelPermission.AlwaysGranted = System.Diagnostics.Debugger.IsAttached; vidoWinSolutionWindowsFormsApplication winApplication = new vidoWinSolutionWindowsFormsApplication(); AuditTrailService.Instance.ObjectAuditingMode = ObjectAuditingMode.Full; //Subscribe to QueryCurrentUserName event of the AuditTrailService's instance AuditTrailService.Instance.QueryCurrentUserName += new QueryCurrentUserNameEventHandler(Instance_QueryCurrentUserName); AuditTrailService.Instance.CustomizeAuditTrailSettings += new CustomizeAuditSettingsEventHandler(Instance_CustomizeAuditTrailSettings); #if EASYTEST if (ConfigurationManager.ConnectionStrings["EasyTestConnectionString"] != null) { winApplication.ConnectionString = ConfigurationManager.ConnectionStrings["EasyTestConnectionString"].ConnectionString; } #endif if (ConfigurationManager.ConnectionStrings["ConnectionString"] != null) { winApplication.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; } try { winApplication.Setup(); winApplication.Start(); } catch (Exception e) { winApplication.HandleException(e); } }
static void Main() { #if EASYTEST DevExpress.ExpressApp.EasyTest.WinAdapter.RemotingRegistration.Register(4100); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); EditModelPermission.AlwaysGranted = System.Diagnostics.Debugger.IsAttached; vidoWinSolutionWindowsFormsApplication winApplication = new vidoWinSolutionWindowsFormsApplication(); AuditTrailService.Instance.ObjectAuditingMode = ObjectAuditingMode.Full; //Subscribe to QueryCurrentUserName event of the AuditTrailService's instance AuditTrailService.Instance.QueryCurrentUserName += new QueryCurrentUserNameEventHandler(Instance_QueryCurrentUserName); AuditTrailService.Instance.CustomizeAuditTrailSettings += new CustomizeAuditSettingsEventHandler(Instance_CustomizeAuditTrailSettings); #if EASYTEST if(ConfigurationManager.ConnectionStrings["EasyTestConnectionString"] != null) { winApplication.ConnectionString = ConfigurationManager.ConnectionStrings["EasyTestConnectionString"].ConnectionString; } #endif if (ConfigurationManager.ConnectionStrings["ConnectionString"] != null) { winApplication.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; } try { winApplication.Setup(); winApplication.Start(); } catch (Exception e) { winApplication.HandleException(e); } }