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