PageRenderTime 24ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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

#
C# | 60 lines | 28 code | 8 blank | 24 comment | 0 complexity | ccc3f017d4e464c91fb8d8768ea9b7ad MD5 | raw file
 1// --------------------------------------------------------------------------------------------------------------------
 2// <summary>
 3//   The widget.
 4// </summary>
 5// --------------------------------------------------------------------------------------------------------------------
 6
 7namespace Widgets.Calendar
 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 whether or not the widget can be edited.
20        /// <remarks>
21        /// The only way a widget can be editable is by adding a edit.ascx file to the widget folder.
22        /// </remarks>
23        /// </summary>
24        /// <value></value>
25        public override bool IsEditable
26        {
27            get
28            {
29                return false;
30            }
31        }
32
33        /// <summary>
34        /// Gets the name. It must be exactly the same as the folder that contains the widget.
35        /// </summary>
36        /// <value></value>
37        public override string Name
38        {
39            get
40            {
41                return "Calendar";
42            }
43        }
44
45        #endregion
46
47        #region Public Methods
48
49        /// <summary>
50        /// This method works as a substitute for Page_Load. You should use this method for
51        /// data binding etc. instead of Page_Load.
52        /// </summary>
53        public override void LoadWidget()
54        {
55            // nothing to load
56        }
57
58        #endregion
59    }
60}