#region Disclaimer/Info
///////////////////////////////////////////////////////////////////////////////////////////////////
// Subtext WebLog
// 
// Subtext is an open source weblog system that is a fork of the .TEXT
// weblog system.
//
// For updated news and information please visit http://subtextproject.com/
// Subtext is hosted at SourceForge at http://sourceforge.net/projects/subtext
// The development mailing list is at subtext-devs@lists.sourceforge.net 
//
// This project is licensed under the BSD license.  See the License.txt file for more information.
///////////////////////////////////////////////////////////////////////////////////////////////////
#endregion

using System;
using System.Web.UI.WebControls;

namespace Subtext.Web.Admin.Pages
{
	public partial class AdminOptionsPage : AdminPage
	{	
	    public AdminOptionsPage() : base()
	    {
            TabSectionId = "Options";
	    }
	    
		protected virtual void Page_Load(object sender, EventArgs e)
		{
            if (!IsPostBack)
            {
                BindLocalUI();
            }
		    BindActionsListUI();
		}
		
		protected virtual void BindActionsListUI()
		{
			HyperLink lnkConfigure = Utilities.CreateHyperLink("ÅäÖÃ", "Configure.aspx");
            HyperLink lnkSyndication = Utilities.CreateHyperLink("¶©ÔÄ", "Syndication.aspx");
			HyperLink lnkComments = Utilities.CreateHyperLink("ÆÀÂÛ", "Comments.aspx");
            HyperLink linkKeyWords = Utilities.CreateHyperLink("¹Ø¼ü×Ö", "EditKeyWords.aspx");
			HyperLink lnkPasswords = Utilities.CreateHyperLink("ÃÜÂë", "Password.aspx");
			HyperLink lnkPreferences = Utilities.CreateHyperLink("ÐÔÄÜ", "Preferences.aspx");

			// Add the buttons to the PageContainer.
			AdminMasterPage.ClearActions();
            AdminMasterPage.AddToActions(lnkConfigure);
            AdminMasterPage.AddToActions(lnkSyndication);
            AdminMasterPage.AddToActions(lnkComments);
            AdminMasterPage.AddToActions(linkKeyWords);
            AdminMasterPage.AddToActions(lnkPasswords);
            AdminMasterPage.AddToActions(lnkPreferences);
		}

        protected virtual void BindLocalUI()
        {
        }

	    #region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{    

		}
		#endregion
	}
}

