/// <summary>
 /// Sets the PanelProperties for the Panel
 /// </summary>
 /// <param name="panelColors">The PanelColors table</param>
 public override void SetPanelProperties(PanelColors panelColors)
 {
     this.m_imgHoverBackground = null;
     base.SetPanelProperties(panelColors);
 }
        /// <summary>
        /// Sets the PanelStyle and PanelColors table in the given control collection.
        /// </summary>
        /// <param name="controls">A collection of child controls</param>
        /// <param name="panelStyle">Style of the panel</param>
        /// <param name="panelColors">The PanelColors table</param>
        /// <exception cref="System.ArgumentNullException">panelColors</exception>
        public static void SetPanelProperties(Control.ControlCollection controls, PanelStyle panelStyle, PanelColors panelColors)
        {
            if (panelColors == null)
            {
                throw new ArgumentNullException("panelColors",
                                                string.Format(System.Globalization.CultureInfo.InvariantCulture,
                                                              Properties.Resources.IDS_ArgumentException,
                                                              "panelColors"));
            }

            ArrayList panels = FindPanels(true, controls);

            foreach (BasePanel panel in panels)
            {
                panel.PanelStyle           = panelStyle;
                panelColors.ZeroitProPanel = panel;
                panel.SetPanelProperties(panelColors);
            }
            ArrayList xpanderPanelLists = FindPanelLists(true, controls);

            foreach (ZeroitProPanelList xpanderPanelList in xpanderPanelLists)
            {
                xpanderPanelList.PanelStyle  = panelStyle;
                xpanderPanelList.PanelColors = panelColors;
            }
        }