乔克斯 发表于 2016-5-25 20:54
循环Controls 判断 为 is CheckBox的 则 设置
var Clean = (from c in this.Controls.Cast<Control>().ToList()
where c.Name.Contains("check")
let cb = c as CheckBox
where cb.Checked
select c).Cast<CheckBox>().ToList();
Clean.ForEach(c => c.Checked =false);
欢迎光临 CSkin博客 (http://bbs.cskin.net/) | Powered by Discuz! X3.2 |