自定义控件中使用枚举类型的属性(原创)
来源:互联网 发布:windows mobile刷机包 编辑:程序博客网 时间:2024/05/03 03:12
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
brightview的专栏(原创) public enum DTableStateSelect
{
ShowAddnew = 1,
SaveAddnew = 2,
ShowEdit = 3,
SaveEdit = 4,
Delete = 5,
Show = 6,
List = 0
}
private DTableStateSelect _DTableState; //定义类的私有变量,变量的类型为上面定义的枚举
public DTableStateSelect DTableState //定义属性,变量的类型为上面定义的枚举
{
get
{
return _DTableState;
}
set
{
_DTableState = value;
}
}
在页面设置控件的枚举类属性
DTable1.DTableState = DTableControl.DTable.DTableStateSelect.List;
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 自定义控件中使用枚举类型的属性(原创)
- 自定义控件中使用枚举类型的属性(原创)
- 枚举类型的自定义属性取得
- 自定义控件中使用属性
- android中自定义的控件,使用自定义属性attrs.xml
- 自定义枚举类型注释属性,并在程序中获取
- Java中Random自定义的枚举类型
- c# 自定义属性 属性类型为枚举
- 在VS2008中创建自定义控件(十)添加枚举型属性
- 在VS2008中创建自定义控件(十)添加枚举型属性
- ActiveX控件属性:自定义属性的使用
- ActiveX控件属性:自定义属性的使用
- 在QML中使用自定义属性类型
- 自定义控件属性使用TypeCoverter标记的类型的一些总结
- 自定义控件中属性
- Java中关于枚举类型的使用
- hibernate中枚举类型的使用
- C#中枚举类型的使用总结
- 解决ASPX网页另类load两次
- ASP.NET极限:页面导航(翻译)
- shell13问
- ASP.NET生成n位不同的验证码
- 当DataSet中包含主/子表时,Update更新步骤
- 自定义控件中使用枚举类型的属性(原创)
- 部署ASP.NET(包含.netframework和MDAC)
- Asp.Net细节性问题精萃
- 在DataGrid里面根据日期的不同显示new图标
- 提高ASP.Net应用程序性能的十大方法
- 一个通过web.Mail发送邮件的类
- ASP.NET中17种正则表达式
- windows2003下asp.Net站点无法使用用户名+密码的方式连接SQLSERVER的问题
- 用ashx动态生成文件