惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
Latest news
Latest news
N
News | PayPal Newsroom
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
Cisco Talos Blog
Cisco Talos Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
美团技术团队
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
S
Secure Thoughts
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed

博客园 - Blue

个已实现的例子:通过Javascript在页面中直接调用Office Communicator API - Blue cmd脚本(C# 清缓存) - Blue - 博客园 isql脚本编写创建数据库(SQL Server2000) 怎样踢mstsc占用者 copy:键盘按键和键盘对应代码表 Thread简单概念 转:ListView 中添加大数据量解决屏幕刷新“闪”的现象 Regsvr32命令全攻略 导入导出CVS文件遇到的问题 - Blue - 博客园 關於泛型的資料 索引器的两种用法 在建表时使用DEFAULT是很有用的 关于web service的验证 SQL中计算月初和月末 临时表有时很有用 在GROUP语句中还可以增加很多内容 注意insert语句写法 case的用法 尽量减少使用游标
一个字段存很多枚举值,然后从字段取出的方法
Blue · 2007-06-26 · via 博客园 - Blue

this.checkBoxEnable.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrEnable) == (long)FieldAttribute.AttrEnable);

this.checkBoxRequired.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrRequired) == (long)FieldAttribute.AttrRequired);

this.checkSort.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrSort) == (long)FieldAttribute.AttrSort);

this.checkBoxKeep.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrKeep) == (long)FieldAttribute.AttrKeep);

this.checkEditable.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrEditable) == (long)FieldAttribute.AttrEditable);

public enum FieldAttribute:long

{

AttrEnable = 0x10000000,

AttrMulti = 0x00000001,

AttrRequired = 0x00000002,

AttrKeep = 0x00000004,

AttrEditable = 0x00000008,

AttrSort = 0x00000010,

AttrRecogMask = 0x0000F000,

AttrRecogOCR = 0x00000000,

AttrRecogBarcode = 0x00001000,

AttrRecogNone = 0x00008000

}