private void Application_Startup(object sender, StartupEventArgs e) { KoobooUpgrade.DeleteUpgradeRemainedFiles(); //第一次默认启动 if (KoobooAutoStart.IsFirstTimeAutoStart()) { KoobooAutoStart.AutoStart(true); } GlobalSettings.RootPath = Kooboo.Data.AppSettings.DatabasePath; KoobooStartUp.StartAll(); }
private void Application_Startup(object sender, StartupEventArgs e) { KoobooUpgrade.DeleteUpgradeRemainedFiles(); if (KoobooAutoStart.IsFirstBoot() || //first run default auto start KoobooAutoStart.IsAutoStart() || //override task when application path changed KoobooAutoStart.OldCodeHadSetAutoSart()) //compatible old code { KoobooAutoStart.AutoStart(true); } GlobalSettings.RootPath = Kooboo.Data.AppSettings.DatabasePath; KoobooStartUp.StartAll(); }