摘要:
WPF本身并没有内置的单体模式支持(以后的版本会支持),而WindowsFormsApplicationBase类中有对单体模式的支持(全名是Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase),所以我们用WindowsFormsApplicationBase做一个wrapper就可以实现单体模式了。 实现单体... 阅读全文
posted @ 2009-11-24 02:24
MainTao
阅读(1787)
评论(5)
推荐(1)
摘要:
SessionEnding By default, an application shuts down when the Windows session ends, which occurs when a user logs off or shuts down. You can detect when a session ends by handling the SessionEnding ev... 阅读全文
posted @ 2009-11-24 02:18
MainTao
阅读(716)
评论(0)
推荐(0)
浙公网安备 33010602011771号