📄 forumtypedropdownlist.cs
字号:
// 作者:宝玉
// 日期:2005-06-15
// 说明:论坛类型选择
using System.Web.UI.WebControls;
using CommunityServer.Components;
using CommunityServer.Components.Enumerations;
namespace CommunityServer.Discussions.Controls {
public class ForumTypeDropDownList : DropDownList
{
public ForumTypeDropDownList()
{
/*
* Normal = 0,
Link = 10,
KB = 20,
FAQ = 30,
Newsletter = 40,
Deleted = 50,
Reporting = 60*/
// Add ForumType
//
Items.Add(new ListItem(ResourceManager.GetString("ForumType_Normal"), ((int) ForumType.Normal).ToString()));
Items.Add(new ListItem(ResourceManager.GetString("ForumType_Link"), ((int) ForumType.Link).ToString()));
Items.Add(new ListItem(ResourceManager.GetString("ForumType_KB"), ((int) ForumType.KB).ToString()));
Items.Add(new ListItem(ResourceManager.GetString("ForumType_FAQ"), ((int) ForumType.FAQ).ToString()));
Items.Add(new ListItem(ResourceManager.GetString("ForumType_Newsletter"), ((int) ForumType.Newsletter).ToString()));
Items.Add(new ListItem(ResourceManager.GetString("ForumType_Deleted"), ((int) ForumType.Deleted).ToString()));
Items.Add(new ListItem(ResourceManager.GetString("ForumType_Reporting"), ((int) ForumType.Reporting).ToString()));
}
public new ForumType SelectedValue
{
get { return (ForumType) int.Parse(base.SelectedValue); }
set { base.SelectedValue = ((int) value).ToString(); }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -