private void RemoveExpression(ExpressionListEntry entry)
        {
            entry.EnterKeyPress -= OnListEntryEnterPressed;
            entry.RemoveButtonClick -= OnListEntryRemoveClick;
            entry.ExpressionEnabledChanged -= OnListEntryEnabledChanged;
            entry.ExpressionTypeChanged -= OnListEntryTypeChanged;

            _expressions.Remove(entry);
            table.Controls.Remove(entry);

            entry.Dispose();
        }
        private void InitializeListEntry(ExpressionListEntry entry)
        {
            entry.Anchor = AnchorStyles.Left | AnchorStyles.Right;
            entry.Margin = new Padding(0);
            entry.Padding = new Padding(4, 3, 4, 3);
            entry.Parent = table;

            entry.EnterKeyPress += OnListEntryEnterPressed;
            entry.RemoveButtonClick += OnListEntryRemoveClick;
            entry.ExpressionEnabledChanged += OnListEntryEnabledChanged;
            entry.ExpressionTypeChanged += OnListEntryTypeChanged;

            _expressions.Add(entry);
            table.Controls.Add(entry);
        }