Beispiel #1
0
        private void ExportAsXML()
        {
            var stringBuilder = new StringBuilder();

            foreach (var file in fileList)
            {
                stringBuilder.Append(ExportConverter.ToXML(file, columns));
            }
            SaveToFile(stringBuilder.ToString());
        }
Beispiel #2
0
        private void ExportAsJSON()
        {
            var stringBuilder = new StringBuilder();

            stringBuilder.AppendLine(@"[");
            foreach (var file in fileList)
            {
                stringBuilder.Append(ExportConverter.ToJSON(file, columns));
            }
            stringBuilder.AppendLine(@"]");
            SaveToFile(stringBuilder.ToString().TrimEnd(','));
        }