ComponentFactory.Krypton.Ribbon.KryptonRibbonGroup.OnRibbonGroupItemsRemoved C# (CSharp) Method

OnRibbonGroupItemsRemoved() private method

private OnRibbonGroupItemsRemoved ( object sender, TypedCollectionEventArgs e ) : void
sender object
e TypedCollectionEventArgs
return void
        private void OnRibbonGroupItemsRemoved(object sender, TypedCollectionEventArgs<KryptonRibbonGroupContainer> e)
        {
            // Remove the back references
            e.Item.Ribbon = null;
            e.Item.RibbonTab = null;
            e.Item.RibbonGroup = null;

            // Only need to update display if this tab is selected and the group was visible
            if ((_ribbon != null) && (_ribbonTab != null) && (_ribbon.SelectedTab == _ribbonTab))
                _ribbon.PerformNeedPaint(true);
        }