/// <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); }
/// <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; } }