zip's

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

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  Patterns & Practices

摘要:Provider 与 Strategy 的区别 1,strategy 更加宽泛,provider 针对 configurable service, plug-in An article with example in code project 阅读全文
posted @ 2011-12-23 11:31 zip's 阅读(136) 评论(0) 推荐(0)

摘要:tbd… 阅读全文
posted @ 2011-10-28 17:10 zip's 阅读(398) 评论(0) 推荐(0)

摘要:问题:实现一个解析器,可以将文本解析成表达式树;例如:"-3 + 4 * (2 / -log( 1 - 5 ))" 表达式数据结构:操作符 + – × / (),常数,等等,都应被定义为一种类。特别说明,将括号定义为一种表达式是很有必要的。对于负号的处理,可以在表达式类中加入一个成员变量做标记; 解析器:上面的树状结构是结果,获得这个树,就需要对字符进行解析,来创建树,基本逻辑如下。 1,从左... 阅读全文
posted @ 2011-08-20 17:56 zip's 阅读(710) 评论(0) 推荐(0)

摘要:很好的学习资料 http://karlshifflett.wordpress.com/2011/06/29/boise-prism-unity-wpf-mvvm-code-and-decks/ https://skydrive.live.com/?cid=51de981e071f222b&sc=documents&uc=1&id=51DE981E071F222B%21321# 阅读全文
posted @ 2011-07-19 09:12 zip's 阅读(829) 评论(0) 推荐(0)

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

摘要:假设,有这样一个应用程序模块MyApp.InfrastructureMyApp.DataMyApp.PresentationMyApp.Shell 阅读全文
posted @ 2011-01-02 15:10 zip's 阅读(227) 评论(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 阅读(247) 评论(0) 推荐(0)