Exemplo n.º 1
0
        public void OnEnabled()
        {
            if (IsEnabled || !Application.Current.CheckAccess())
            {
                return;
            }

            Core.Init();
            TrinitySettings.InitializeSettings();
            SkillUtils.UpdateActiveSkills();
            TabUi.InstallTab();
            SetupDemonBuddy();
            UILoader.PreLoadWindowContent();
            ModuleManager.Enable();
            Core.Logger.Log($"is now ENABLED: {Description} - now in action!");
            IsEnabled = true;
        }
Exemplo n.º 2
0
        public void OnEnabled()
        {
            using (ZetaDia.Memory.AcquireFrame())
            {
                if (IsEnabled || !Application.Current.CheckAccess())
                {
                    return;
                }

                Core.Init();
                BotMain.OnStart += OnStart;
                BotMain.OnStop  += OnStop;
                TrinitySettings.InitializeSettings();
                SkillUtils.UpdateActiveSkills();
                HookManager.CheckHooks();
                TabUi.InstallTab();
                SetupDemonBuddy();
                UILoader.PreLoadWindowContent();
                ModuleManager.Enable();
                s_logger.Information($@"{Name} v{Version} is now ENABLED.
{Description}");
                IsEnabled = true;
            }
        }