/// <summary> /// Returns a BinaryReport of the diagram save in the given path/file /// </summary> /// <param name="filePath"></param> /// <returns></returns> private BinaryReport GetReport(string filePath) { BinaryReport report = new BinaryReport(); BinaryCapsule capsule = LoadCapsule(filePath); if (capsule != null) { report.Thumbnail = capsule.Thumbnail; GraphInformation info = capsule.Abstract.GraphInformation; report.Author = info.Author; report.CreationDate = info.CreationDate; report.Description = info.Description; report.FileSize = new System.IO.FileInfo(filePath).Length; report.Path = filePath; report.Subject = info.Subject; report.Title = info.Title; if (OnReport != null) { OnReport(report, OutputInfoLevels.Info); } return(report); } else { return(null); } }
/// <summary> /// Returns a BinaryReport of the diagram save in the given path/file /// </summary> /// <param name="filePath"></param> /// <returns></returns> private BinaryReport GetReport(string filePath) { BinaryReport report = new BinaryReport(); BinaryCapsule capsule = LoadCapsule(filePath); if(capsule!=null) { report.Thumbnail = capsule.Thumbnail; GraphInformation info = capsule.Abstract.GraphInformation; report.Author = info.Author; report.CreationDate = info.CreationDate; report.Description = info.Description; report.FileSize = new System.IO.FileInfo(filePath).Length; report.Path = filePath; report.Subject = info.Subject; report.Title = info.Title; if(OnReport!=null) OnReport(report,OutputInfoLevels.Info); return report; } else return null; }
/// <summary> /// Adds a report to the collection /// </summary> /// <param name="report"></param> /// <returns></returns> public int Add(BinaryReport report) { return this.InnerList.Add(report); }
/// <summary> /// Adds a report to the collection /// </summary> /// <param name="report"></param> /// <returns></returns> public int Add(BinaryReport report) { return(this.InnerList.Add(report)); }