PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/widgets/Search/widget.ascx.cs

#
C# | 72 lines | 35 code | 9 blank | 28 comment | 0 complexity | e609f11f7d86b7e57e58a48b29999012 MD5 | raw file
 1// --------------------------------------------------------------------------------------------------------------------
 2// <summary>
 3//   The widget.
 4// </summary>
 5// --------------------------------------------------------------------------------------------------------------------
 6
 7namespace Widgets.Search
 8{
 9    using App_Code.Controls;
10
11    /// <summary>
12    /// The widget.
13    /// </summary>
14    public partial class Widget : WidgetBase
15    {
16        #region Properties
17
18        /// <summary>
19        ///     Gets a value indicating if the header is visible. This only takes effect if the widgets isn't editable.
20        /// </summary>
21        /// <value><c>true</c> if [display header]; otherwise, <c>false</c>.</value>
22        public override bool DisplayHeader
23        {
24            get
25            {
26                return false;
27            }
28        }
29
30        /// <summary>
31        ///     Gets wether or not the widget can be edited.
32        ///     <remarks>
33        ///         The only way a widget can be editable is by adding a edit.ascx file to the widget folder.
34        ///     </remarks>
35        /// </summary>
36        /// <value></value>
37        public override bool IsEditable
38        {
39            get
40            {
41                return false;
42            }
43        }
44
45        /// <summary>
46        ///     Gets the name. It must be exactly the same as the folder that contains the widget.
47        /// </summary>
48        /// <value></value>
49        public override string Name
50        {
51            get
52            {
53                return "Search";
54            }
55        }
56
57        #endregion
58
59        #region Public Methods
60
61        /// <summary>
62        /// This method works as a substitute for Page_Load. You should use this method for
63        ///     data binding etc. instead of Page_Load.
64        /// </summary>
65        public override void LoadWidget()
66        {
67            // Nothing to load
68        }
69
70        #endregion
71    }
72}