//------------------------------------------------------------------------------
// <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 {
    /// <summary>
    /// Summary description for UserActivityDisplayRadioButtonList.
    /// </summary>
    public class UserActivityDisplayRadioButtonList : RadioButtonList {

        public UserActivityDisplayRadioButtonList() {
            Items.Add( new ListItem( CommunityServer.Components.ResourceManager.GetString("Utility_UserActivityDisplayMode_PostCount"), UserActivityDisplayMode.PostCount.ToString() ) );
            Items.Add( new ListItem( CommunityServer.Components.ResourceManager.GetString("Utility_UserActivityDisplayMode_UserRank"), UserActivityDisplayMode.UserRank.ToString() ) );
        }

        public new UserActivityDisplayMode SelectedValue {
            get { return (UserActivityDisplayMode) Enum.Parse( typeof( UserActivityDisplayMode ), base.SelectedValue ); }
            set { base.SelectedValue = value.ToString(); }
        }

    }
}
