using System;
using System.Web;
using System.Web.UI.WebControls;
using CommunityServer.ControlPanel.Controls;
using CommunityServer.ControlPanel.UI;
using CommunityServer.Controls;
using CA = ComponentArt.Web.UI;
using Style = CommunityServer.Controls.Style;

namespace CommunityServer.ControlPanel.Forums
{
	/// <summary>
	/// Summary description for GroupManager.
	/// </summary>
	public class GroupManager : BaseForumPage
	{

		public string IFrameScrolling;

		protected Hyperlink AddGroupButton;
		protected Hyperlink AddSectionButton;
		protected Hyperlink DeleteButton;
		protected ForumTreeViewControl ForumTree;

		override protected void OnInit(EventArgs e)
		{
			this.Load += new EventHandler(this.Page_Load);
			base.OnInit(e);
		}


		private void Page_Load(object sender, EventArgs e)
		{
			ForumTree.AddGroupButtonClientID = AddGroupButton.ClientID;
			ForumTree.AddSectionButtonClientID = AddSectionButton.ClientID;
			ForumTree.DeleteButtonClientID = DeleteButton.ClientID;

			HttpBrowserCapabilities br = Request.Browser;
			IFrameScrolling = br.Type.IndexOf("IE") == 0 ? "auto" : "yes" ;

		}

	}
}
