找到的方法有两种:
1)http://www.cnblogs.com/liuyazhou/archive/2009/11/02/1594364.html
2)http://codereview.stackexchange.com/questions/20871/single-instance-wpf-application