Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 public static void Close()
 {
     AddOnManager.SaveAddons(LBAddonPath);
     Hotkeys.UnregisterAll();
     //Local Dat Cleanup
     LocalDatManager.CleanUp();
 }
Ejemplo n.º 3
0
 public void RemoveHotkey(AccountHotkey key)
 {
     Hotkeys.Remove(key);
     if (AccHotkeys.Contains(key))
     {
         AccHotkeys.Remove(key);
     }
 }
Ejemplo n.º 4
0
        public static void Close()
        {
            AddOnManager.SaveAddons(LBAddonPath);
            AccountManager.SaveAccounts();
            Hotkeys.UnregisterAll();
            //Local Dat Cleanup
            LocalDatManager.CleanUp();

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