|
|
@@ -1216,8 +1216,12 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
private void frmReportApp_FormClosed(object sender, FormClosedEventArgs e)
|
|
|
{
|
|
|
- string strDBpathGB = resultFilesList[0].FilePath + "\\" + "ReportGBDB.db";
|
|
|
- File.Delete(strDBpathGB);
|
|
|
+ if (resultFilesList.Count!=0)
|
|
|
+ {
|
|
|
+ string strDBpathGB = resultFilesList[0].FilePath + "\\" + "ReportGBDB.db";
|
|
|
+ File.Delete(strDBpathGB);
|
|
|
+ }
|
|
|
+
|
|
|
Process.GetCurrentProcess().Kill();
|
|
|
this.Hide();//打开EChar图后,回收浏览器资源暂卡,为达到操作流畅性,先隐藏窗体再回收资源
|
|
|
|