ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupRadioButton.AutoUpdateContainer C# (CSharp) Method

AutoUpdateContainer() private method

private AutoUpdateContainer ( IRibbonGroupContainer Container ) : void
Container IRibbonGroupContainer
return void
        private void AutoUpdateContainer(IRibbonGroupContainer Container)
        {
            // Process each component inside the container
            foreach (Component component in Container.GetChildComponents())
            {
                // If the component is itself a container...
                if (component is IRibbonGroupContainer)
                    AutoUpdateContainer(component as IRibbonGroupContainer);
                else
                {
                    // If this is another radio button...
                    if (component is KryptonRibbonGroupRadioButton)
                    {
                        KryptonRibbonGroupRadioButton radioButton = (KryptonRibbonGroupRadioButton)component;

                        // Do not process ourself!
                        if (radioButton != this)
                        {
                            // If the target is checked and allowed to be auto unchecked
                            if (radioButton.AutoCheck && radioButton.Checked)
                                radioButton.Checked = false;
                        }
                    }
                }
            }
        }