Ejemplo n.º 1
0
        public static void SetPanelProperties(Control.ControlCollection controls, PanelStyle panelStyle, PanelColors panelColors)
        {
            if (panelColors == null)
            {
                throw new ArgumentNullException("panelColors",
                                                string.Format(System.Globalization.CultureInfo.InvariantCulture,
                                                              StaticResource.IDS_ArgumentException,
                                                              "panelColors"));
            }

            ArrayList panels = FindPanels(true, controls);

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

            foreach (ExpondPanelList expondPanelList in expondPanelLists)
            {
                expondPanelList.PanelStyle  = panelStyle;
                expondPanelList.PanelColors = panelColors;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the PanelProperties for the Panel
 /// </summary>
 /// <param name="panelColors">The PanelColors table</param>
 public override void SetPanelProperties(PanelColors panelColors)
 {
     this._imgHoverBackground = null;
     base.SetPanelProperties(panelColors);
 }