zip's

while(true) { Write it down; Think about it; Refine it; Sleep(); }

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

2011年5月21日

摘要: 博弈论公开课第一课的5个结论1, 不要选择劣势策略;Don't play astrictly dominated strategy;2, 人是自私的;Yale students are evil;3, 理性选择导致次优结果;Rational choices canlead to bad outcomes;4, 学会换位思考;Put yourself in other people'sshoes;5, 汝欲得之,必先知之;Fingure out what you want before you try and get what you want; 阅读全文
posted @ 2011-05-21 17:07 zip's 阅读(570) 评论(0) 推荐(0) 编辑

2011年5月18日

摘要: "MEF is about extensibility whilst MAF is about isolation. Moreover, they are not mutually exclusive. It is entirely possible - and legitimate - to use both together." Read More. 阅读全文
posted @ 2011-05-18 09:24 zip's 阅读(325) 评论(0) 推荐(0) 编辑

2011年4月20日

摘要: Quicksorthttp://en.wikipedia.org/wiki/Quicksorthttp://www.ruanyifeng.com/blog/2011/04/quicksort_in_javascript.html 阅读全文
posted @ 2011-04-20 11:19 zip's 阅读(148) 评论(0) 推荐(0) 编辑

2011年3月16日

摘要: Affine Transforms used in computer graphics, readingin MSDN 阅读全文
posted @ 2011-03-16 09:48 zip's 阅读(160) 评论(0) 推荐(0) 编辑

2011年3月14日

摘要: Prism v4 Region Navigation Pipeline 阅读全文
posted @ 2011-03-14 14:09 zip's 阅读(185) 评论(0) 推荐(0) 编辑

2011年3月2日

摘要: 拖动Itemhttp://marlongrech.wordpress.com/2007/12/28/drag-drop-using-listboxes-part-1/http://marlongrech.wordpress.com/2007/12/29/drag-drop-using-listboxes-part-2/选择已经选中的Item选择一个已经选中的 item :有时,需要处理选择一个已经选中的 item,可是这时 SelectionChanged 不会被再次触发。一个解决方法是,用 EventSetter 将 item 的事件代理出去。<ListBox SelectionCha 阅读全文
posted @ 2011-03-02 10:26 zip's 阅读(794) 评论(0) 推荐(0) 编辑

2011年1月12日

摘要: 处理在不同DPI情况下GUI显示的问题,有2个方法:用 ViewBox 包一层运行时转换转换像素单位使用 MarkupExtensionCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->namespace Program{ public class pxExtension : MarkupExtension { private readonly double _len; public pxExtension(string len) { try 阅读全文
posted @ 2011-01-12 14:07 zip's 阅读(720) 评论(0) 推荐(0) 编辑

2011年1月2日

摘要: 假设,有这样一个应用程序模块MyApp.InfrastructureMyApp.DataMyApp.PresentationMyApp.Shell 阅读全文
posted @ 2011-01-02 15:10 zip's 阅读(216) 评论(0) 推荐(0) 编辑

摘要: 注意:这一系列随笔都基于这个假设--------Prsim 提供了4中方式:Commanding,Event Aggregation,Region Context,Shared ServicesCommanding1,定义全局的 CompositeCommand,通常需要被定义在一个基础模块中,比如 MyApp.Infrastructure;2,在View Model中定义一个 ICommand;3,在View Model的构造函数中 RegisterCommand;4,Binding 步骤1中的 CompositeCommand 到 GUI 上。当 GUI 触发 CompositeComma 阅读全文
posted @ 2011-01-02 15:03 zip's 阅读(243) 评论(0) 推荐(0) 编辑

2010年12月23日

摘要: 当程序在进行一项耗时的工作时,加上一个UI显示当前的进度,这样可以避免让用户等到不耐烦,客户可能以为死机了,可能狂点鼠标,造成更差的效率问题。对于这个问题,解决方法有多种:1,都在主线程中进行,将耗时任务分解成小块,主线程处理,同时更新GUI,MSDN中有个很好的例子 "A Single-Threaded Application with a Long-Running Calculation";2,工作线程为非GUI线程,负责处理耗时工作,主线程更新GUI。这种方法只有一个GUI线程,对多线程编程,这个是通常的选择;3,主线程,工作线程都是UI线程,主线程处理耗时工作,工作线程负责处理UI更新 阅读全文
posted @ 2010-12-23 11:20 zip's 阅读(1030) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页