// ADD-END 08072007 EG public void reportFromDLL() { CWXmlDataWrapper report = new CWXmlDataWrapper(DLLWrapper.getLatestReport(server)); // MOD-START 08142007 EG if (report != null) { parent.alertReport(report); report.destoryHandlerReport(); } // MOD-END 08142007 EG }
/**If the doctype of the entered <code>data</code> is specified to be saved, this method saves it to a file with the format <code> DOCTYPE_YYYY_MM_DD_hh_mm_ss.xml </code> in the folder path specified. * @param data - CWXmlDataWrapper to be saved */ // MOD-START 08072007 EG public bool saveIfSpecifiedServer(IntPtr Module, CWXmlDataWrapper data, string ipAdd, string docType) { string targetFolder = ewkReportFolderPath; if (docType.Equals("Producttype")) targetFolder = productTypeFolderPath; // MOD-END 08072007 EG // ADD-START 08072007 EG targetFolder = targetFolder + ipAdd + "\\"; // ADD-END 08072007 EG try { // MOD-START 08152007 EG if (toSave[getDocTypeIndex(docType)]) { Directory.CreateDirectory(targetFolder); if (data.saveFormattedInServer(Module, targetFolder, docType)) return true; } else { return true; } // MOD-END 08152007 EG } catch (Exception ex) { System.Windows.Forms.MessageBox.Show("Unable to save in " + targetFolder + ". Please check the file settings.", "File Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } return false; }