Exemple #1
0
        /// <summary>
        /// Removes the given FilterContainer from this BaseFilterView
        /// </summary>
        /// <param name="filterContainer">The FilterContainer to remove from this BaseFilterView</param>
        /// <param name="updateAfterRemoval">Whether to update the layout after this method call</param>
        private void RemoveFilterControl(FilterContainer filterContainer, bool updateAfterRemoval)
        {
            filterContainer.ContainerDragStart -= _containerDraggedHandler;
            filterContainer.ContainerDragEnd   -= _containerDroppedHandler;

            _filterContainers.Remove(filterContainer);

            filterContainer.DisposeThis();

            pnl_container.Controls.Remove(filterContainer);

            if (updateAfterRemoval)
            {
                UpdateLayout();
                UpdateVisualization();
                UpdateFilterPresetButtons();
            }
        }