Example #1
0
        public static void Init()
        {
            //Path Setup
            DirectorySetup();
            LoadGwClientInfo();
            CheckGwClientVersion();

            //Updater Network Protocol
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            VersionSwitcher.DeleteUpdater();
            VersionSwitcher.CheckForUpdate();

            //Account Import Export
            AccountManager.ImportAccounts();
            ClientManager.ImportActiveClients();
            CrashAnalyzer.ReadCrashLogs();
            IconManager.Init();

            //Temp AddonManager
            AddOnManager.LoadAddons(LBAddonPath);
            AddOnManager.LaunchLbAddons();

            Hotkeys.RegisterAll();

            //Cleanup Plugin folder
            PluginManager.RemoveUninstalledPlugins();
            PluginManager.AddToInstallPlugins();

            //Cleanup CacheFolder
            CacheCleaner.Clean();
        }
 public static void Close()
 {
     AddOnManager.SaveAddons(LBAddonPath);
     Hotkeys.UnregisterAll();
     //Local Dat Cleanup
     LocalDatManager.CleanUp();
 }
Example #3
0
 public void RemoveHotkey(AccountHotkey key)
 {
     Hotkeys.Remove(key);
     if (AccHotkeys.Contains(key))
     {
         AccHotkeys.Remove(key);
     }
 }
Example #4
0
        public static void Close()
        {
            AddOnManager.SaveAddons(LBAddonPath);
            AccountManager.SaveAccounts();
            Hotkeys.UnregisterAll();
            //Local Dat Cleanup
            LocalDatManager.CleanUp();

            PluginManager.OnLBClose(null);
        }
Example #5
0
 public void Init()
 {
     Hotkeys.Add(this);
     executevent += Execute;
     ID           = Hotkeys.Index;
 }