Exemplo n.º 1
0
 /// <summary>
 /// Initialize a new instance of the Office2007Colors class.
 /// </summary>
 /// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
 public PanelColorsOffice2007(BasePanel basePanel)
     : base(basePanel)
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize a new instance of the PanelColorsBlack class.
 /// </summary>
 /// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
 public PanelColorsBlack(BasePanel basePanel)
     : base(basePanel)
 {
 }
Exemplo n.º 3
0
        /// <summary>
        /// expands the specified panel
        /// </summary>
        /// <param name="panel">panel to expand</param>
        public void Expand(BasePanel panel)
        {
            if (panel == null)
            {
                throw new ArgumentNullException("panel",
                    string.Format(System.Globalization.CultureInfo.InvariantCulture,
                    ACOT.Infrastructure.Controls.Properties.Resources.IDS_ArgumentException,
                    "panel"));
            }

            XPanderPanel xpanderPanel = panel as XPanderPanel;
            if (xpanderPanel != null)
            {
                foreach (XPanderPanel tmpXPanderPanel in this.m_xpanderPanels)
                {
                    if (tmpXPanderPanel.Equals(xpanderPanel) == false)
                    {
                        tmpXPanderPanel.Expand = false;
                    }
                }
                PropertyDescriptor propertyDescriptor = TypeDescriptor.GetProperties(xpanderPanel)["Expand"];
                if (propertyDescriptor != null)
                {
                    propertyDescriptor.SetValue(xpanderPanel, true);
                }
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initialize a new instance of the PanelColorsRed class.
 /// </summary>
 /// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
 public PanelColorsRed(BasePanel basePanel)
     : base(basePanel)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initialize a new instance of the PanelColors class.
 /// </summary>
 /// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
 public PanelColors(BasePanel basePanel)
     : this()
 {
     this.m_basePanel = basePanel;
     Microsoft.Win32.SystemEvents.UserPreferenceChanged += new Microsoft.Win32.UserPreferenceChangedEventHandler(SystemEventsUserPreferenceChanged);
 }