示例#1
0
 public static void Unload()
 {
     try { App.Current.Lake.GetComponent <ISettings>().Save(); } catch { }
     try { OpenFx.Unload(); } catch { }
     try { BasicBooter.Free(); } catch { }
     try { LoggingManager.Free(); } catch { }
 }
示例#2
0
        public static void Unload()
        {
            var mins = Convert.ToInt32((DateTime.Now - Process.GetCurrentProcess().StartTime).TotalMinutes);

            Analytics.TrackEvent("App Shutdown", new Dictionary <string, string>()
            {
                { "Run Time (mins)", mins.ToString() },
            });

            try { App.Current.Lake.GetComponent <ISettings>().Save(); } catch { }
            try { OpenFx.Unload(); } catch { }
            try { BasicBooter.Free(); } catch { }
            try { LoggingManager.Free(); } catch { }
        }
示例#3
0
 public void Unload()
 {
     try
     {
         if (Settings.Default.IsFirstLaunch && Settings.Default.GuidePassed)
         {
             Settings.Default.IsFirstLaunch = false;
         }
         Settings.Default.Save();
         try { OpenFx.Unload(); } catch { }
         BasicBooter.Free();
         //TaskKill.Kill("adb.exe");
     }
     catch { }
 }
示例#4
0
 public void Unload()
 {
     try
     {
         if (Settings.Default.IsFirstLaunch && Settings.Default.GuidePassed)
         {
             Settings.Default.IsFirstLaunch = false;
         }
         Settings.Default.Save();
         try { OpenFx.Unload(); } catch { }
         if (Adb.Server?.IsEnable == true)
         {
             Adb.Server.Kill();
             TaskKill.Kill("adb.exe");
         }
     }
     catch { }
 }
示例#5
0
 public void Unload()
 {
     try
     {
         if (Settings.Default.IsFirstLaunch && Settings.Default.GuidePassed)
         {
             Settings.Default.IsFirstLaunch = false;
         }
         Settings.Default.Save();
         if (Bus.OpenFxObserver.Instance.IsLoaded)
         {
             OpenFx.Unload();
         }
         if (Adb.Server.IsEnable)
         {
             Adb.Server.Kill();
             TaskKill.Kill("adb.exe");
         }
     }
     catch { }
 }