philzhou

导航

统计

上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

2012年11月26日 #

Multithreading in WinForms(转摘)

摘要: 原文The .NET Framework has full support for running multiple threads at once. In this article, Patrick Steele looks at how threads accomplish their task and why you need to be careful how you manage a WinForms application with multiple threads.A user interface that is unresponsive will frustrate your 阅读全文

posted @ 2012-11-26 21:49 philzhou 阅读(281) 评论(1) 推荐(0) 编辑

2012年11月18日 #

map xml to entity

摘要: 在使用xml作为系统配置时,免不了需要将xml文件读取出来,并转换成相应的实体。但是,如果需要自己去操作xml文件的每一个节点,将其组装成实体,这个工作确实相当繁琐的,所以一般我们会写一个实体,然后使用下面的这种方式来反序列化。[XmlRoot("PersonInfoXml")] public class Person{ [XmlElement("Name")] public Identifier PersonIdentify { get { if (mIdentify == null) mIdentify = new Identifier(); ret 阅读全文

posted @ 2012-11-18 22:36 philzhou 阅读(1299) 评论(2) 推荐(0) 编辑

2012年11月16日 #

MySql Service Installation

摘要: intall the mysqld as a windows service:mysqld.exe --install "MySQL01" --defaults-file=”d:\mysql\mysql.ini”net start “MySQL01” >NULmysqld.exe –-remove “MySQL01” 阅读全文

posted @ 2012-11-16 22:21 philzhou 阅读(231) 评论(0) 推荐(0) 编辑

Quartz.Net 配置

摘要: Quartz.Net is a very useful secheduling component, it can hanlde Interval, simple, cronExpresion pattern scheduling with some simple configuration.1. create a windows application with following reference.C5 is the generic collection class set as a complementary of .net framework.Since Quartz using C 阅读全文

posted @ 2012-11-16 00:25 philzhou 阅读(2055) 评论(0) 推荐(0) 编辑

2012年10月16日 #

.NET Exception Handling

摘要: Note: It is very important to just use the throw statement, rather than throw ex. If you have "throw ex", then the stack trace of the exception will be replaced with a stack trace starting at the re-throw point, which is usually not the desired effect. 阅读全文

posted @ 2012-10-16 11:43 philzhou 阅读(289) 评论(0) 推荐(0) 编辑

2012年9月25日 #

Continuous Integration

摘要: Old ProcessCheck out the needed source files from your source code repository.Make changes to the code.Click Build on the Visual Studio menu, and hope everything compiles.Go back to step 2. You did get compile errors, didn’t you?Run unit tests, and hope everything is green. We hope you’re running un 阅读全文

posted @ 2012-09-25 23:19 philzhou 阅读(460) 评论(0) 推荐(0) 编辑

2012年6月9日 #

winform应用程序:非控件创建线程无法操作控件

摘要: 在winform中常常会有耗时的操作,需要有进度条来与用户进行交互,告诉用户当前操作的进度状况。在这种情况下,为避免耗时操作阻塞UI主线程,会为操作单独开一个工作线程。但是当工作线程去更新Form上的ProgressBar的进度时,异常抛出了:线程间操作无效: 从不是创建控件“progressBarUpdate”的线程访问它。这是因为progressBarUpdate这个控件是由UI主线程创建并维护的,而工作线程直接去操作UI线程创建的控件显然是不被允许的,但是工作线程确实需要通知progressBarUpdate去更新状态,如何解决这个问题呢?我们可以使用Control 中的方法 publi 阅读全文

posted @ 2012-06-09 12:05 philzhou 阅读(843) 评论(0) 推荐(0) 编辑

2012年6月4日 #

转 Step-by-step Introduction to Delegates and Lambda Expressions

摘要: 原文Many so often during my lectures an courses I provide to – what I would call – main stream developers I realize that delegates, anonymous methods and lambda expressions are concepts either completely unknown or not really fully understood. This is a pity! In this post I want to provide a step-by-s 阅读全文

posted @ 2012-06-04 20:41 philzhou 阅读(269) 评论(0) 推荐(0) 编辑

2012年5月29日 #

Proposed solution for the NHibernate exception “Column ‘Reserved Word’ does not belong to table ReservedWords.”

摘要: 原文 已被墙When I updated my NHibernate assembly to version 2.1.0.GA and tried to configure it against my MySQL installation with the .NET Connector v 5.2.7 I got an exception that I hadn’t encounter before:System.ArgumentException : Column ‘Reserved Word’ does not belong to table ReservedWords.After som 阅读全文

posted @ 2012-05-29 10:39 philzhou 阅读(563) 评论(1) 推荐(1) 编辑

2012年5月9日 #

EF Code First - Add-Migration fails with Could not load file or assembly error

摘要: EF Code First - Add-Migration fails with Could not load file or assembly errorHello,I just hooked up a new project to use EF Migrations features and am encountering errors trying to add new migrations. I was successful at enabling migrations and getting InitialCreate script created, but when I try t 阅读全文

posted @ 2012-05-09 17:09 philzhou 阅读(1283) 评论(1) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
点击右上角即可分享
微信分享提示