/// <inheritdoc /> public override void OnDestroy() { _editor = null; _key = null; base.OnDestroy(); }
/// <summary> /// Initializes a new instance of the <see cref="DictionaryItemLabel"/> class. /// </summary> /// <param name="editor">The editor.</param> /// <param name="key">The key.</param> public DictionaryItemLabel(DictionaryEditor editor, object key) : base(key?.ToString() ?? "<null>") { _editor = editor; _key = key; SetupContextMenu += OnSetupContextMenu; }