Example #1
0
            /// <inheritdoc />
            public override void OnDestroy()
            {
                _editor = null;
                _key    = null;

                base.OnDestroy();
            }
Example #2
0
            /// <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;
            }