PageRenderTime 25ms CodeModel.GetById 20ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/App_Code/Controls/PageMenu.cs

#
C# | 33 lines | 21 code | 4 blank | 8 comment | 0 complexity | 163e1591aaa003931edfed2c9da505dc MD5 | raw file
 1// --------------------------------------------------------------------------------------------------------------------
 2// <summary>
 3//   Builds nested page list.
 4// </summary>
 5// --------------------------------------------------------------------------------------------------------------------
 6
 7namespace App_Code.Controls
 8{
 9    using System;
10    using System.Web;
11    using System.Web.UI;
12    using BlogEngine.Core;
13
14    /// <summary>
15    /// Summary description for PageMenu
16    /// </summary>
17    public class PageMenu : Control
18    {
19        public override void RenderControl(HtmlTextWriter writer)
20        {
21            var menu = new BlogEngine.Core.Web.Controls.PageMenu();
22
23            menu.Home = Resources.labels.home;
24            menu.Contact = Resources.labels.contact;
25            menu.Archive = Resources.labels.archive;
26            menu.Logon = Resources.labels.login;
27            menu.Logoff = Resources.labels.logoff;
28
29            writer.Write(menu.Html);
30            writer.Write(Environment.NewLine);
31        }
32    }
33}