public void ExportXML() { try { if (File.Exists(infoFile)) { File.Delete(infoFile); } if (File.Exists(matrixFile)) { File.Delete(matrixFile); } if (File.Exists(risksFile)) { File.Delete(risksFile); } Thread.Sleep(CommonTime * 1000); AgentDll.dump_table(dbpath, "Info", infoFile); Thread.Sleep(CommonTime * 1000); AgentDll.dump_table(dbpath, "Conscida", matrixFile); Thread.Sleep(CommonTime * 1000); AgentDll.dump_table(dbpath, "Risks", risksFile); } catch (Exception ex) { LogHelper.WriteLog(ex.ToString()); string str = ex.ToString(); } }