上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 不用担心List没有创建问题。private ObservableCollection _optionalCollection; public ObservableCollection OptionalCollection { get ... 阅读全文
posted @ 2014-05-28 10:11 太古月石 阅读(6602) 评论(0) 推荐(0) 编辑
摘要: c-sharp-list-orderby-alphabetical-order 阅读全文
posted @ 2014-05-20 23:42 太古月石 阅读(5991) 评论(0) 推荐(0) 编辑
摘要: 不是拖拽,而是在设计栏的属性设置里面。 阅读全文
posted @ 2014-05-19 16:10 太古月石 阅读(133) 评论(0) 推荐(0) 编辑
摘要: ChangeList里面会有重复的数据,这时可以这样去掉重复的item// Remove duplicated info var dup = ChangeList.Where(item => item.Stream.id == item.NewId).ToList(); ... 阅读全文
posted @ 2014-05-12 16:34 太古月石 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1.如何使用Join:http://www.devcurry.com/2011/01/join-example-in-linq-and-c.html 阅读全文
posted @ 2014-05-08 16:59 太古月石 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1. ConfigurationManager的命名空间:using System.Configuration;2.To be able to save you have to use a configuration object returned by the OpenExeConfigurati... 阅读全文
posted @ 2014-05-08 16:43 太古月石 阅读(14637) 评论(0) 推荐(0) 编辑
摘要: 前几天一直想引用别的DLL里面的一个图片。总是出现各种各样问题,一气之下将图片拷贝到当前Project中,运行良好。虽然知道引用图片,就1.2.列出来的2点就够了。1.The Build Action should be Resource instead of Embedded Resource.2... 阅读全文
posted @ 2014-05-07 17:04 太古月石 阅读(927) 评论(0) 推荐(0) 编辑
摘要: Nunit使用最近项目开始大量使用Nunit, 发现Nunit还是有很多好处的。1. 测试驱动逻辑,这样可以尽最大可能减少“修改”引入的Bug. 如果你修改了一些东西,导致Case跑不过。请检查你修改的逻辑。2. 写出来的代码会更符合测试方法。比如尽量把一些逻辑放入属性中,测试起来明朗很多。代码读起... 阅读全文
posted @ 2014-05-07 13:42 太古月石 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 将所有的事件,属性,都映射到ViewModel中。好处多多,以后开发尽量用这种模式。解决方法:使用System.Windows.Interactivity.dll,添加该dll到项目引用xmlns:i="clr-namespace:System.Windows.Interactivity;assem... 阅读全文
posted @ 2014-05-07 12:48 太古月石 阅读(13271) 评论(1) 推荐(4) 编辑
摘要: group.Closing += (sender, e) => { try { Code here } ... 阅读全文
posted @ 2014-04-30 16:52 太古月石 阅读(166) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页