private void loadFromXml() { if (File.Exists(strDownloadPath + "\\allFiles.xml")) { string xml = File.ReadAllText(strDownloadPath + "\\allFiles.xml"); allFiles = (SeDes.ToObj(xml, allFiles) as List <file>); } }
private void saveToXml() { string xmlser = SeDes.ToXml(allFiles); File.WriteAllText(strDownloadPath + "\\allFiles.xml", xmlser); }