public string BuildDiagramContent(EntityDTO dto)
 {
     EntityData data = new EntityData();
     FileData files = new FileData();
     FileDTO file = files.GetFile(dto.DGXFileName);
     byte[] imageBytes = file.Data;
     string path = string.Format("{0}_{1}", file.Date.ToFileTime().ToString(), dto.DGXFileName);
     int poolCount = data.GetPoolCount(dto.ID);
     WmfImageManager imageManager = new WmfImageManager(dto, imageBytes,
         path, dto.Type, poolCount, false);
     path = imageManager.ProcessImage();
     return path.Replace(@"\", @"/");
 }
        protected override string BuildDiagramImage(EntityDTO dto)
        {
            StringBuilder html = new StringBuilder();
            EntityData data = new EntityData();
            FileData files = new FileData();

            FileDTO file = files.GetFile(dto.DGXFileName);
            byte[] imageBytes = file.Data;

            string path = string.Format("{0}_{1}", file.Date.ToFileTime().ToString(), dto.DGXFileName);

            int poolCount = data.GetPoolCount(dto.ID);
            WmfImageManager imageManager = new WmfImageManager(dto, imageBytes,
                path, dto.Type, poolCount, false);
            path = imageManager.ProcessImage();

            html.Append("<div id=\"diagram-line\" class=\"clearfix\">");
            html.Append("<div id=\"diagram-line-left\" class=\"infoBox\">To navigate to the related process and sub-process of this diagram, use the menu on the right.<br/>To navigate related informations, select the tabs above.</div>");
            if (dto.Type == 111)
            {
                html.Append(BuildQuickLinks(dto));
            }
            html.Append("<div style=\"clear: both;\"></div>");
            html.Append("</div>");
            html.AppendFormat(GlobalStringResource.Presenter_BuildDiagramImage_Tag, path.Replace(@"\", @"/"));
            html.Append(GlobalStringResource.BreakTag);
            return html.ToString();
        }