08 2012 档案

把C#一个文件中的多个类自动分到各自的文件中
摘要:今天又发现了一个ReSharper的很cool的功能,在文件上右键,Refactor,然后"Move Types Into Matching Files…”可以自动把这个文件中的多个类分别放到不同的文件中,并且帮你改好名字。 阅读全文

posted @ 2012-08-31 16:06 fresky 阅读(508) 评论(0) 推荐(0)

VS2012很cool的新功能:检查重复代码
摘要:Visual Studio Ultimate 2012: Finding and managing cloned code | Visual Studio 2012 Premium and Ultimate Overview | Channel 9 阅读全文

posted @ 2012-08-21 11:38 fresky 阅读(775) 评论(0) 推荐(0)

对msi的安装包“Run As Administrator”
摘要:刚才有个同事装msi一直不能成功,抛错:error 1001 the directory name is invalid 发现是没有用管理员权限运行安装包,对于是exe的,可以直接右键“Run As Administrator” 对于msi的,需要这样: msiexec /a your.msi 阅读全文

posted @ 2012-08-17 14:14 fresky 阅读(558) 评论(0) 推荐(0)

WPF中Cannot find resource named '{XXX}'的解决办法
摘要:今天遇到了一个wpf的bug,如果在App.xaml中没有指定StartupUri(而是想通过override OnStartup 来指定StartupUri),并且只有一个resource的话,会遇到Cannot find resource named '{XXX}'的错误。 解决这个问题的简单办法有两个: 1. 在App.xaml中指定一个x:Name="App" 2. 在Resourc... 阅读全文

posted @ 2012-08-14 13:05 fresky 阅读(775) 评论(0) 推荐(0)

c++ construcor中需要注意的坑
摘要:c++ - Why does this call the default constructor? - Stack Overflow讲了几个c++ constructor中要注意的坑。 阅读全文

posted @ 2012-08-10 12:28 fresky 阅读(156) 评论(0) 推荐(0)

resharper的convert if to switch太好用了
摘要:在试着用多态,子类来解决if/else 的问题时,resharper的convert if to switch太好用了。 阅读全文

posted @ 2012-08-09 13:24 fresky 阅读(498) 评论(0) 推荐(0)

把excel搬到任何地方:)
摘要:Excel Blog - The Excel Button - Bringing Excel Everywhere,太cool了:) 阅读全文

posted @ 2012-08-09 10:24 fresky 阅读(151) 评论(0) 推荐(0)

Visual Studio 2012RC unit test 改进
摘要:Visual Studio 2012 RC在unit test方面做了很多改进,具体见这里: http://blogs.msdn.com/b/visualstudioalm/archive/2012/06/19/visual-studio-2012-rc-what-s-new-in-code-coverage.aspx 阅读全文

posted @ 2012-08-09 10:18 fresky 阅读(287) 评论(0) 推荐(0)

WPF中radiobutton 的 data binding方法
摘要:WPF中的radiobox通过data binding绑定到一个bool属性后,如下所示,尽管UI可以正确的显示,但是data binding的属性不能正确的更新。比如user点了No之后属性UserChoice还是True。<RadioButton Content="Yes" IsChecked="{Binding UserChoice}"/><RadioButton Content="No"/... 阅读全文

posted @ 2012-08-06 09:38 fresky 阅读(3766) 评论(0) 推荐(2)

导航