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

OnRibbonGroupItemsInserted() private method

private OnRibbonGroupItemsInserted ( object sender, TypedCollectionEventArgs e ) : void
sender object
e TypedCollectionEventArgs
return void
        private void OnRibbonGroupItemsInserted(object sender, TypedCollectionEventArgs<KryptonRibbonGroupContainer> e)
        {
            // Setup the back references
            e.Item.Ribbon = _ribbon;
            e.Item.RibbonTab = _ribbonTab;
            e.Item.RibbonGroup = this;

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