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

using System.Web.UI.WebControls;

using CommunityServer.Components;
using CommunityServer.Discussions.Components;

namespace CommunityServer.Discussions.Controls 
{
    
    public class ModerationLevelDropDownList : DropDownList 
    {

        public ModerationLevelDropDownList() 
        {
            // Add countries
            //
            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(); }
        }

    }
}
