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; } }