public bool loadData(object commDialog) { // TODO: Use of ByRef founded Public Function LoadData(ByRef CommDialog As Object) As Boolean CSXml.cXml docXml = null; docXml = new CSXml.cXml(); docXml.init(commDialog); docXml.setFilter(C_FILEDATAEX); docXml.setName(m_name); docXml.setPath(m_path); if (!docXml.openXmlWithDialog()) { return false; } m_path = docXml.getPath(); m_name = docXml.getName(); CSXml.cXmlProperty property = docXml.getNodeProperty(docXml.getRootNode(), "ReportDisconnected"); m_reportDisconnected = property.getValueBool(eTypes.eBoolean); return nLoadData(docXml); }
public bool load(object commDialog) { // TODO: Use of ByRef founded Public Function Load(ByRef CommDialog As Object) As Boolean try { CSXml.cXml docXml = null; docXml = new CSXml.cXml(); docXml.init(commDialog); docXml.setFilter(C_FILEEX); if (m_name != "") { docXml.setName(m_name); } else { docXml.setPath(m_pathDefault + "\\*." + C_FILEEX); } docXml.setPath(m_path); if (!docXml.openXmlWithDialog()) { return false; } m_path = docXml.getPath(); m_name = docXml.getName(); CSXml.cXmlProperty property = docXml.getNodeProperty(docXml.getRootNode(), "ReportDisconnected"); m_reportDisconnected = property.getValueBool(eTypes.eBoolean); return nLoad(docXml); } catch (Exception ex) { cError.mngError(ex, "Load", C_MODULE, ""); return false; } }
public bool loadSilentData(String fileName) { CSXml.cXml docXml = null; docXml = new CSXml.cXml(); m_path = CSKernelFile.cFile.getPath(fileName); m_name = CSKernelFile.cFile.getFileName(fileName); docXml.init(null); docXml.setFilter(C_FILEDATAEX); docXml.setName(m_name); docXml.setPath(m_path); if (!docXml.openXml()) { return false; } m_path = docXml.getPath(); m_name = docXml.getName(); CSXml.cXmlProperty property = docXml.getNodeProperty(docXml.getRootNode(), "ReportDisconnected"); m_reportDisconnected = property.getValueBool(eTypes.eBoolean); return nLoadData(docXml); }
public bool loadSilent(String fileName) { try { CSXml.cXml docXml = null; docXml = new CSXml.cXml(); CSKernelFile.cFile f = null; f = new CSKernelFile.cFile(); m_path = cFile.getPath(fileName); m_name = cFile.getFileName(fileName); docXml.init(null); docXml.setFilter(C_FILEEX); docXml.setName(m_name); docXml.setPath(m_path); if (!docXml.openXml()) { return false; } m_path = docXml.getPath(); m_name = docXml.getName(); CSXml.cXmlProperty property = docXml.getNodeProperty(docXml.getRootNode(), "ReportDisconnected"); m_reportDisconnected = property.getValueBool(eTypes.eBoolean); return nLoad(docXml); } catch (Exception ex) { cError.mngError(ex, "LoadSilent", C_MODULE, ""); return false; } }