Ejemplo n.º 1
0
        public override void Terminate()
        {
            if (m_host == null)
            {
                return;
            }
            m_host.MainWindow.DocumentManager.ActiveDocumentSelected -= HidingAllowedReset;
            PwGroup.GroupTouched      -= HidingAllowedReset;
            m_host.MainWindow.KeyDown -= ToggleHideExpiredKey;
            if ((m_MainToolBar != null) && (m_tsbToggle != null))
            {
                m_tsbToggle.Click -= ToggleHideExpired;
                m_MainToolBar.Items.Remove(m_tsbToggle);
            }
            m_host.MainWindow.UIStateUpdated -= OnUIStateUpdated;
            HookOtherTimers(false);
            m_host.MainWindow.ToolsMenu.DropDownItems.Remove(m_MenuOptions);
            m_MenuOptions.Dispose();

            if (m_MenuExpiring != null)
            {
                if (m_MenuExpiring.Owner != null)
                {
                    (m_MenuExpiring.OwnerItem as ToolStripMenuItem).DropDownOpening -= OnDropDownOpening;
                    m_MenuExpiring.Owner.Items.Remove(m_MenuExpiring);
                }
                m_MenuExpiring.Dispose();
            }
            PluginDebug.SaveOrShow();
            m_host = null;
        }
Ejemplo n.º 2
0
        public override void Terminate()
        {
            if (m_host == null)
            {
                return;
            }

            RestoreFindHandlers();

            GlobalWindowManager.WindowAdded -= OnSearchFormAdded;
            m_host.MainWindow.ToolsMenu.DropDownItems.Remove(m_menu);
            Tools.OptionsFormShown  -= Tools_OptionsFormShown;
            Tools.OptionsFormClosed -= Tools_OptionsFormClosed;
            m_menu.Click            -= OnShowOptions;

            if ((m_menu != null) && !m_menu.IsDisposed)
            {
                m_menu.Dispose();
            }
            if ((m_cbSearchAllDatabases != null) && !m_cbSearchAllDatabases.IsDisposed)
            {
                m_cbSearchAllDatabases.Dispose();
            }

            PluginDebug.SaveOrShow();

            m_host = null;
        }
Ejemplo n.º 3
0
        public override void Terminate()
        {
            if (m_host == null)
            {
                return;
            }

            PTHotKeyManager.HotKeyPressed -= PTHotKeyManager_HotKeyPressed;

            OTPDAO.Cleanup();

            m_host.MainWindow.FileOpened -= MainWindow_FileOpened;

            SprEngine.FilterCompile -= SprEngine_FilterCompile;
            SprEngine.FilterPlaceholderHints.Remove(Config.Placeholder);

            m_columnOTP.StopTimer();
            m_host.ColumnProviderPool.Remove(m_columnOTP);

            Config.Cleanup();

            RemoveTray();
            RemoveMenu();

            PluginDebug.SaveOrShow();

            m_host = null;
        }
Ejemplo n.º 4
0
 public override void Terminate()
 {
     if (m_host == null)
     {
         return;
     }
     Deactivate();
     PluginDebug.SaveOrShow();
     m_host = null;
 }
Ejemplo n.º 5
0
 public override void Terminate()
 {
     if (m_host == null)
     {
         return;
     }
     PluginTranslate.TranslationChanged -= PluginTranslate_TranslationChanged;
     GlobalWindowManager.WindowAdded    -= OnWindowAdded;
     m_host.MainWindow.DocumentManager.ActiveDocumentSelected -= (o, e) => LoadDBProfiles();
     m_host.MainWindow.ToolsMenu.DropDownItems.Remove(m_menu);
     Program.Config.PasswordGenerator.UserProfiles.RemoveDBProfiles();
     RemoveContextMenu();
     PluginDebug.SaveOrShow();
     m_host = null;
 }
Ejemplo n.º 6
0
        public override void Terminate()
        {
            if (m_host == null)
            {
                return;
            }

            Tools.OptionsFormShown  -= OptionsShown;
            Tools.OptionsFormClosed -= OptionsClosed;
            m_host.MainWindow.ToolsMenu.DropDownItems.Remove(m_menu);
            m_menu.Dispose();
            GlobalWindowManager.WindowAdded -= OnWindowAdded;

            ColorPasswords(false);
            PluginDebug.SaveOrShow();
            m_host = null;
        }
Ejemplo n.º 7
0
        public override void Terminate()
        {
            if (m_host == null)
            {
                return;
            }

            m_host.ColumnProviderPool.Remove(m_cp);

            PEDCValueDAO.EndLogging();

            Tools.OptionsFormShown          -= Tools_OptionsFormShown;
            PwEntry.EntryTouched            -= OnEntryTouched;
            GlobalWindowManager.WindowAdded -= OnWindowAdded;

            RemoveMenu();
            PluginDebug.SaveOrShow();

            m_host = null;
        }
Ejemplo n.º 8
0
        public override void Terminate()
        {
            if (m_host == null)
            {
                return;
            }
            m_aww.Disable();
            WndProcHook.RemoveHandler(m_host.MainWindow);
            HotkeysDeactivate();
            SprEngine.FilterPlaceholderHints.Remove(Config.Placeholder);
            AutoType.FilterCompilePre -= this.AutoType_FilterCompilePre;
            m_host.MainWindow.ToolsMenu.DropDownItems.Remove(m_menuItem);

            Tools.OptionsFormShown            -= OptionsFormShown;
            Tools.OptionsFormClosed           -= ConfigWrite;
            GlobalWindowManager.WindowAdded   -= OnWindowAdded;
            GlobalWindowManager.WindowRemoved -= OnWindowRemoved;

            PluginDebug.SaveOrShow();

            m_host = null;
        }