System.Diagnostics.Process.GetCurrentProcess().Kill();//关闭程序 转载于:https://www.cnblogs.com/CandiceW/p/4204564.html