摘要:
一、Common层二、DataAccess层三、Rule层四、BusinessFacade层五、UI层 代码实现 一、Common层 Model类定义 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ImportsCommon.ServerData... 阅读全文
2010年3月10日 #
2010年3月1日 #
摘要:
简介 多线程迟早是我们要面对的一个东西,本文向你展示了一个简单的 使用两个线程来拷贝文件的应用程序 Backup将一个目录中文件拷贝到另一个目录中,它使用了一个线程来显示 正被拷贝的文件名称,另一个线程用来在拷贝的文件的同时统计文件数目和文件夹数目。这就意味着在拷贝可以开始之前不用浪费时间去等待文件数目的统计完成, 我们使用了两个线程同时完成拷贝和统计工作。 Backup对于大数量文件的拷贝也是快... 阅读全文
2010年2月27日 #
2010年2月23日 #
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?xmlversion="1.0"encoding="utf-8"?><root><!--当前酒店信息--><CurretnHotelInfo><... 阅读全文
2010年2月10日 #
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ModuleFunctionsFunctionIsDefaultValue(OfT)(ByValvalueAsT)AsBooleanDimdefValueAsT=NothingReturnObject... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--PublicClassPersonPublicFirstNameAsStringPublicLastNameAsStringPublicSubNew(ByValfirstNameAsString,By... 阅读全文
2010年2月6日 #
摘要:
每个使用关系型数据库的程序都可能遇到数据死锁的情况。理解什么是死锁之前先要了解锁定的概念:如果需要“修改”一条数据,首先数据库管理系统会在上面加锁,以保证在同一时间只有一个事务能进行修改操作。锁定(Locking)发生在当一个事务获得对某一资源的“锁”时,这时,其他的事务就不能更改这个资源了,这种机制的存在是为了保证数据一致性。 多数情况下,可以认为... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ImportsSystem.IOImportsSystem.ThreadingImportsSystem.ComponentModelPublicClassForm1'Adelegatethatcan... 阅读全文
2010年2月5日 #
摘要:
代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ImportsSystem.Net.MailImportsSystem.Net.ConfigurationImportsSystem.ConfigurationImportsSystem.TextI... 阅读全文