/BlogEngine/BlogEngine.NET/widgets/Search/widget.ascx.cs
C# | 72 lines | 35 code | 9 blank | 28 comment | 0 complexity | e609f11f7d86b7e57e58a48b29999012 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
- // --------------------------------------------------------------------------------------------------------------------
- // <summary>
- // The widget.
- // </summary>
- // --------------------------------------------------------------------------------------------------------------------
-
- namespace Widgets.Search
- {
- using App_Code.Controls;
-
- /// <summary>
- /// The widget.
- /// </summary>
- public partial class Widget : WidgetBase
- {
- #region Properties
-
- /// <summary>
- /// Gets a value indicating if the header is visible. This only takes effect if the widgets isn't editable.
- /// </summary>
- /// <value><c>true</c> if [display header]; otherwise, <c>false</c>.</value>
- public override bool DisplayHeader
- {
- get
- {
- return false;
- }
- }
-
- /// <summary>
- /// Gets wether or not the widget can be edited.
- /// <remarks>
- /// The only way a widget can be editable is by adding a edit.ascx file to the widget folder.
- /// </remarks>
- /// </summary>
- /// <value></value>
- public override bool IsEditable
- {
- get
- {
- return false;
- }
- }
-
- /// <summary>
- /// Gets the name. It must be exactly the same as the folder that contains the widget.
- /// </summary>
- /// <value></value>
- public override string Name
- {
- get
- {
- return "Search";
- }
- }
-
- #endregion
-
- #region Public Methods
-
- /// <summary>
- /// This method works as a substitute for Page_Load. You should use this method for
- /// data binding etc. instead of Page_Load.
- /// </summary>
- public override void LoadWidget()
- {
- // Nothing to load
- }
-
- #endregion
- }
- }