Beispiel #1
0
        /// <summary>
        /// Initializes the plugin
        /// </summary>
        public void Initialize()
        {
            managerResource = new ManagerResources();

            this.InitBasics();
            this.LoadSettings();

            this.CreateMenu();
            dictNotifyPressKey = new Dictionary<Keys, IPressKey>();
            managerSettings = new ManagerSettings(settingsQuickGenerator, dictNotifyPressKey, this, vca);
            managerSettings.ShortcutMenuChangeHandler += new ShortcutMenuChange(managerSettings_ShortcutMenuChangeHandler);

            custCompletion = new CustomCompletionScintillaControl();
            custCompletion.OnSelectItem += new CustomCompletionScintillaControl.ItemSelectedEventHandler(custCompletion_OnSelectItem);
        }
Beispiel #2
0
        /// <summary>
        /// Disposes the plugin
        /// </summary>
        public void Dispose()
        {
            this.SaveSettings();

             if (custCompletion != null)
             {
                 custCompletion.Dispose();
                 custCompletion = null;
             }

             managerSettings.Dispose();
             managerResource.Dispose();

             if (_EnvelopMenu != null)
             {
                 _EnvelopMenu.Dispose();
                 _EnvelopMenu = null;
             }
        }