关闭应用程序的几种方法
Application.Exit();//注意Application在using System.Windows.Forms命名空间中;
System.Diagnostics.Process.GetCurrentProcess().Kill();
Application.Exit();//注意Application在using System.Windows.Forms命名空间中;
System.Diagnostics.Process.GetCurrentProcess().Kill();