/// <summary> /// Application starting method /// </summary> #region Application start private void Application_Startup(object sender, StartupEventArgs e) { Filesystem.WriteLog("INFO : Application started"); // Prevent multiple executions Common.PreventDuplicate(); try { // Argument passing at execution time var commandLineArgs = e.Args; if (e.Args.Length != 0) { Common.StartupChecks(commandLineArgs[0]); } else { Common.StartupChecks("smoothrun"); } // Database initialization SQLStorage.DBInitializationChecks(); // Start modules ModulesControl mod = new ModulesControl(); mod.StartModules(); Filesystem.WriteLog("INFO : Modules started successfully"); } catch (Exception ex) { Filesystem.WriteLog("ERROR : Exception trown in Application Startup : " + ex); } }
/// <summary> /// Application starting method /// </summary> #region Application start private void Application_Startup(object sender, StartupEventArgs e) { // Prevent multiple executions Common.preventDuplicate(); try { // Database initialization SQLStorage.DBInitializationChecks(); // Registry preparation Common.registryChecks(); // Start modules modulesControl mod = new modulesControl(); mod.startModules(); } catch { } }