Ejemplo n.º 1
0
        /// <summary>
        /// Expands the specified XPanderPanel
        /// </summary>
        /// <param name="panel">The XPanderPanel to expand</param>
        /// <example>
        /// <code>
        /// private void btnExpandXPander_Click(object sender, EventArgs e)
        /// {
        ///    // xPanderPanel10 is not null
        ///    if (xPanderPanel10 != null)
        ///    {
        ///        EgoDevil.Utilities.UI.EPanels.XPanderPanelList panelList = xPanderPanel10.Parent as EgoDevil.Utilities.UI.EPanels.XPanderPanelList;
        ///        // and it's parent panelList is not null
        ///        if (panelList != null)
        ///        {
        ///            // expands xPanderPanel10 in it's panelList.
        ///            panelList.Expand(xPanderPanel10);
        ///        }
        ///    }
        /// }
        /// </code>
        /// </example>
        public void Expand(BaseEPanel panel)
        {
            if (panel == null)
            {
                throw new ArgumentNullException("panel",
                                                string.Format(CultureInfo.InvariantCulture,
                                                              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);
                }
            }
        }
Ejemplo n.º 2
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(BaseEPanel basePanel)
     : this()
 {
     this.m_basePanel = basePanel;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initialize a new instance of the PanelColorsOffice2007Black class.
 /// </summary>
 /// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
 public PanelColorsOffice2007Black(BaseEPanel basePanel)
     : base(basePanel)
 {
 }
Ejemplo n.º 4
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(BaseEPanel basePanel)
     : base(basePanel)
 {
 }
 /// <summary>
 /// Initialize a new instance of the PanelColorsOffice2007Silver class.
 /// </summary>
 /// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
 public PanelColorsOffice2007Silver(BaseEPanel basePanel)
     : base(basePanel)
 {
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initialize a new instance of the PanelColorsOffice class.
 /// </summary>
 /// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
 public PanelColorsOffice(BaseEPanel basePanel)
     : base(basePanel)
 {
 }