ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupCustomControl.UnmonitorControl C# (CSharp) Method

UnmonitorControl() private method

private UnmonitorControl ( Control c ) : void
c System.Windows.Forms.Control
return void
        private void UnmonitorControl(Control c)
        {
            // Unhook from events
            c.MouseEnter -= new EventHandler(OnCustomControlEnter);
            c.MouseLeave -= new EventHandler(OnCustomControlLeave);

            // Unhook from child controls
            foreach (Control child in c.Controls)
                UnmonitorControl(child);
        }