//------------------------------------------------------------------------------
// <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 YesNoRadioButtonList.
    /// </summary>
    public class YesNoRadioButtonList : RadioButtonList {

        public YesNoRadioButtonList() {
            Items.Add( new ListItem( CommunityServer.Components.ResourceManager.GetString("Yes"), true.ToString() ) );
            Items.Add( new ListItem( CommunityServer.Components.ResourceManager.GetString("No"), false.ToString() ) );
        }

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

    }
}
