一般关闭当前窗体使用:

this.Close();  

 

关闭全部窗体并退出程序使用:

Application.Current.Shutdown();  

posted on 2011-04-17 14:31  dinid  阅读(10700)  评论(0编辑  收藏  举报