上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 34 下一页
摘要: ★★★★☆ 定义一系列算法,把它们一个一个封装起来,并且使它们可互相转换。该模式使得算法可独立于使用它的客户而变化。 Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it. 阅读全文
posted @ 2007-09-25 15:52 sekihin 阅读(508) 评论(0) 推荐(0) 编辑
摘要: ★★★☆☆ 允许一个对象在其内部状态改变时改变它的行为。从而使对象看起来似乎修改了其行为。 Allow an object to alter its behavior when its internal state changes. The object will appear to change its class. 阅读全文
posted @ 2007-09-25 08:53 sekihin 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 如果用到Work表,Work表的首选设计是,所有字段全部用字符型,避免在Crystal Report里使用复杂的公式进行格式化,例如CStr(数值字段,格式化字符串);Replace(数值字段,"¥","")。 要是遇到符号的格式化问题,例如在数字后显示符号,可以添加一个控制字段。 阅读全文
posted @ 2007-09-24 08:43 sekihin 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 非表示,复数行,负号 阅读全文
posted @ 2007-09-21 15:47 sekihin 阅读(357) 评论(0) 推荐(0) 编辑
摘要: ★★★★★ 定义对象间的一种一对多的依赖关系,以便当一个对象的状态发生改变时,所有依赖于它的对象都得到通知并自动更新。 Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. 阅读全文
posted @ 2007-09-20 11:10 sekihin 阅读(604) 评论(0) 推荐(3) 编辑
摘要: ★☆☆☆☆ 在不破坏封装性的前提下,捕获一个对象的内部状态,并在该对象之外保存这个状态。这样以后就可以将该对象恢复到原先保存的状态。 Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later. 阅读全文
posted @ 2007-09-14 16:30 sekihin 阅读(495) 评论(0) 推荐(0) 编辑
摘要: ★★☆☆☆ 用一个中介对象来封装一系列的对象交互。中介者使各对象不需要显式地相互引用,从而使其耦合松散,而且可以独立地改变它们之间的交互。 Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently. 阅读全文
posted @ 2007-09-12 15:15 sekihin 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 随着VBx对动态编程的更多支持计划,现在来讨论Visual Basic中已经存在的动态属性是个不错的时机。这一部分,我们讨论多重分派(Multiple Dispatch)。 阅读全文
posted @ 2007-09-11 13:21 sekihin 阅读(565) 评论(0) 推荐(0) 编辑
摘要: ★★★★★ 提供一种方法顺序访问一个聚合对象中各个元素,而又不需暴露该对象的内部表示。 Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. 阅读全文
posted @ 2007-09-11 11:47 sekihin 阅读(712) 评论(1) 推荐(0) 编辑
摘要: MVC(Model-View-Controller,模型—视图—控制器模式)用于表示一种软件架构模式。它把软件系统分为三个基本部分:模型(英语:Model),视图(View)和控制器(Controller)。 MVC由Trygve Reenskaug提出,最早被應用在SmallTalk-80環境中。模型—视图—控制器模式的目的是实现一种动态的程序设计,使后续对程序的修改和扩展简化,并且使程序某一部... 阅读全文
posted @ 2007-09-10 10:02 sekihin 阅读(1752) 评论(0) 推荐(1) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 34 下一页