/// <summary> /// Reads match list from xml file /// </summary> /// <param name="fStream">Stream to the file</param> /// <returns>Return value indicates whether file reading succeeded</returns> public bool ReadFromXml(FileStream fStream) { _pathToFile = fStream.Name; FileProcessor fileProcessor = new FileProcessor(fStream); _matchList = fileProcessor.ReadXmlFile(); return (_matchList != null) ? true : false; }
/// <summary> /// Writes matchlist to the xml file /// </summary> /// <returns>Return value indicates whether file writing succeeded</returns> public bool WriteToXml() { if (!String.IsNullOrEmpty(_pathToFile)) { FileProcessor fileProcessor = new FileProcessor(_pathToFile); return fileProcessor.WriteXmlFile(_matchList); } return false; }
/// <summary> /// Writes matchlist to the xml file /// </summary> /// <param name="fStream">Stream to the file</param> /// <returns>Return value indicates whether file writing succeeded</returns> public bool WriteToXml(FileStream fStream) { _pathToFile = fStream.Name; FileProcessor fileProcessor = new FileProcessor(fStream); return fileProcessor.WriteXmlFile(_matchList); }