public bool openXml() { try { string file = ""; m_domDoc = new XmlDocument(); file = getPath() + m_name; CSKernelFile.cFileEx fileEx = new CSKernelFile.cFileEx(); if (fileEx.fileExists(file)) { if (!loadXml(file)) { return(false); } } else { cWindow.msgWarning("The file;;" + file + ";;doesnt exists."); return(false); } return(true); } catch (Exception ex) { cError.mngError(ex, "OpenXml", C_MODULE, "There was an error trying to open the file: " + m_name); return(false); } }
public bool openXml() { try { string file = ""; m_domDoc = new XmlDocument(); file = getPath() + m_name; CSKernelFile.cFileEx fileEx = new CSKernelFile.cFileEx(); if (fileEx.fileExists(file)) { if (!loadXml(file)) { return false; } } else { cWindow.msgWarning("The file;;" + file + ";;doesnt exists."); return false; } return true; } catch (Exception ex) { cError.mngError(ex, "OpenXml", C_MODULE, "There was an error trying to open the file: " + m_name); return false; } }