⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moderationleveldropdownlist.cs

📁 community server 源码
💻 CS
字号:
//------------------------------------------------------------------------------
// <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(); }
        }

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -