温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:SpaceBuilder v1.0正式版源码
1//------------------------------------------------------------------------------ 2
// <copyright company="Tunynet"> 3
// Copyright (c) Tunynet Network Technology Co., Ltd. All rights reserved. 4
// </copyright> 5
//------------------------------------------------------------------------------ 6
7
using System; 8
using System.Collections.Generic; 9
using System.Text; 10
using System.Web.UI.WebControls; 11
using System.Collections; 12
using SpaceBuilder.Blogs.Components; 13
14
namespace SpaceBuilder.Blogs.Controls 15
{ 16
public class BlogPostTypeDropDownList : DropDownList 17
{ 18
public BlogPostTypeDropDownList() 19
{ 20
this.Items.Clear(); 21
if (ShowAll) 22
this.Items.Add(new ListItem("不限", "-1")); 23
24
this.Items.Add(new ListItem("原创", ((int)BlogPostType.Post).ToString())); 25
this.Items.Add(new ListItem("转帖", ((int)BlogPostType.Article).ToString())); 26
} 27
28
/// <summary> 29
/// 是否显示“不限”选项 30
/// </summary> 31
public bool showAll = false; 32
public bool ShowAll 33
{ 34
get { return this.showAll; } 35
set { this.showAll = value; } 36
} 37
} 38
} 39





}
}