namespace Zeta.EnterpriseLibrary.Windows.Base { #region Using directives. // ---------------------------------------------------------------------- using System.Windows.Forms; // ---------------------------------------------------------------------- #endregion ///////////////////////////////////////////////////////////////////////// /// <summary> /// Base class for forms. /// </summary> public class FormBase : Form { #region Public properties. // ------------------------------------------------------------------ /// <summary> /// Gets a value indicating whether this instance is design mode. /// </summary> /// <value> /// <c>true</c> if this instance is design mode; otherwise, <c>false</c>. /// </value> public bool IsDesignMode { get { return base.DesignMode; } } /// <summary> /// Gets a value that indicates whether the <see cref="T:System.ComponentModel.Component"></see> is currently in design mode. /// </summary> /// <value></value> /// <returns>true if the <see cref="T:System.ComponentModel.Component"></see> is in design mode; otherwise, false.</returns> public new bool DesignMode { get { return base.DesignMode || UserControlBase.IsDesignMode( this ); } } // ------------------------------------------------------------------ #endregion } ///////////////////////////////////////////////////////////////////////// }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)