摘要: 假如有A窗体,有一个计时器B窗体,也有一个计时器。要求B窗体的计时器和A窗体同步。A窗体是主界面,B窗体是子界面方案1:要使得B窗体和A窗体保持同步的计时器,那么在启动B窗体的时候,可以将A窗体的计时器的间隔作为B窗体的构造函数的参数传递或者将A窗体的间隔保存到文件中,在B窗体加载之后,从配置中读取... 阅读全文
posted @ 2015-02-26 10:46 ChuckLu 阅读(273) 评论(0) 推荐(0) 编辑
摘要: I ran into a question on stackoverflow the other day that sort of shocked me. It was a piece of code, with the author asking why it wasn't a factory p 阅读全文
posted @ 2015-02-26 09:20 ChuckLu 阅读(424) 评论(0) 推荐(0) 编辑