public List <Document> GetDocuments() { var list = new List <Document>(); var path = ioService.GetDocumentDirectory(); var files = ioService.EnumerateFiles(path, "*.json"); foreach (var file in files) { var jsonText = ioService.ReadAllText(file); var document = JsonConvert.DeserializeObject <Document>(jsonText); //Sid Add 2016/07/13 因為如果直接撈以前的路徑,沙盒名稱會有誤,所以要重撈 document.Thumbnail = Path.Combine(ioService.GetThumbnailDirectory(), Path.GetFileName(document.Thumbnail)); document.Reference = Path.Combine(ioService.GetTemplateDirectory(), Path.GetFileName(document.Reference)); list.Add(document); } return(list); }