public ExternalDBApplicationResult OnStartup( ControlledApplication a) { string path = Assembly.GetExecutingAssembly().Location; JtLogger.Init(Path.ChangeExtension(path, "log")); JtSettings.Init(Path.ChangeExtension(path, "json")); a.ApplicationInitialized += OnApplicationInitialized; return(ExternalDBApplicationResult.Succeeded); }
public ExternalDBApplicationResult OnStartup( ControlledApplication a) { string path = Assembly.GetExecutingAssembly().Location; JtLogger.Init(Path.ChangeExtension(path, "log")); JtSettings.Init(Path.ChangeExtension(path, "json")); #if FORGE_DA4R_TEST_LOCALLY a.ApplicationInitialized += OnApplicationInitialized; #else // if not FORGE_DA4R_TEST_LOCALLY DesignAutomationBridge.DesignAutomationReadyEvent += OnDesignAutomationReadyEvent; #endif // FORGE_DA4R_TEST_LOCALLY return(ExternalDBApplicationResult.Succeeded); }