/// <summary> /// 关闭应用程序 /// </summary> static public void CloseThisApp(bool isShow) { if (isShow) { MessageBox.Show("HttpServer程序异常退出!", "错误:"); } GlobalParameter.httpServerRun = false; if (mainFunction != null) { mainFunction.StopMainFunctionThread(); } if (httpHandle != null) { httpHandle.StopHttpServerThread(); } Application.Exit(); }