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

using System;
using CommunityServer.ControlPanel.Controls;
using CommunityServer.ControlPanel.Controls.Galleries;
using CommunityServer.ControlPanel.UI;
using CommunityServer.Controls;
using ResourceControl = CommunityServer.ControlPanel.Controls.ResourceControl;
using ResourceLinkButton = CommunityServer.ControlPanel.Controls.ResourceLinkButton;

namespace CommunityServer.ControlPanel.PhotoAdmin
{
	/// <summary>
	/// Summary description for DefaultPermissionList.
	/// </summary>
	public class Quotas : BaseGalleryAdminPage
	{
		#region Child Controls

		protected ResourceControl SectionDescription;
		protected MPContent DescriptionRegion;
		protected ConfigOKStatusMessage Status;
		protected ResourceControl Section_Sub_Description;
		protected ResourceControl Resourcecontrol1;
		protected QuotaEditControl QuotaEditControl1;
		protected ResourceLinkButton Save;
		protected MPContent TaskRegion;
		protected Modal Modal1;
		protected MPContainer Mpcontainer1;

		#endregion
	
		private void Page_Load(object sender, EventArgs e)
		{

		}

		#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);
			this.Save.Click +=new EventHandler(Save_Click);
		}
		
		/// <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 EventHandler(this.Page_Load);

		}
		#endregion

		private void Save_Click(object sender, EventArgs e)
		{
			if(QuotaEditControl1.Save())
				Status.Visible = true;

			//Response.Redirect(Request.RawUrl);
		}
	}
}
