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

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

using CommunityServer.Components;

namespace CommunityServer.Controls
{
	public class ModerationLevelDropDownList : DropDownList
	{
		public ModerationLevelDropDownList()
		{
			Items.Add(new ListItem(CommunityServer.Components.ResourceManager.GetString("ModerationLevel_Unmoderated"), ((int) ModerationLevel.Unmoderated).ToString()));
			Items.Add(new ListItem(CommunityServer.Components.ResourceManager.GetString("ModerationLevel_Moderated"), ((int) ModerationLevel.Moderated).ToString()));
		}

		public new ModerationLevel SelectedValue
		{
			get { return (ModerationLevel) int.Parse(base.SelectedValue); }
			set { base.SelectedValue = ((int) value).ToString(); }
		}

	}
}
