//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

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

namespace CommunityServer.ControlPanel.FileAdmin
{
	/// <summary>
	/// Summary description for GroupManager.
	/// </summary>
	public class FolderGroupManager : BaseFilesAdminPage
	{
		public string IFrameScrolling;
		
		#region Child Controls

		protected MPContent DescriptionRegion;
		protected MPContent TaskRegion;
		protected MPContainer Mpcontainer1;
		protected ResourceControl SectionDescription;
		protected Style Style1;
		protected Style Style2;
		protected Style Style3;
		protected Script Script1;
		protected Script Script2;
		protected Head Head1;
		protected StatusMessage Status;
		protected LinkButton Save;
		protected MPContent bcr;
		protected CA.Splitter Splitter1;
		protected Hyperlink AddGroupButton;
		protected Hyperlink AddSectionButton;
		protected Hyperlink DeleteButton;
		protected ResourceControl Resourcecontrol1;
		protected ResourceControl Resourcecontrol2;
		protected ResourceControl Section_Sub_Description;
		protected FolderGroupTreeViewControl GroupTree;
		
		#endregion

		private void Page_Load(object sender, EventArgs e)
		{
			GroupTree.AddGroupButtonClientID = AddGroupButton.ClientID;
			GroupTree.AddSectionButtonClientID = AddSectionButton.ClientID;
			GroupTree.DeleteButtonClientID = DeleteButton.ClientID;
			HttpBrowserCapabilities br = Request.Browser;
			IFrameScrolling = br.Type.IndexOf("IE") == 0 ? "auto" : "yes" ;

		}

		#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()
		{
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion

	
		
		
	}
}
