예제 #1
0
        public override string Print()
        {
            Html = new StringBuilder();

            Html.AppendLine("<h1>" + _river.GetIcon() + " " + _river.Name + ", River</h1><br />");

            if (_river.Coordinates.Any())
            {
                List <Bitmap> maps = MapPanel.CreateBitmaps(_world, _river);

                Html.AppendLine("<table>");
                Html.AppendLine("<tr>");
                Html.AppendLine("<td>" + MakeLink(BitmapToHtml(maps[0]), LinkOption.LoadMap) + "</td>");
                Html.AppendLine("<td>" + MakeLink(BitmapToHtml(maps[1]), LinkOption.LoadMap) + "</td>");
                Html.AppendLine("</tr></table></br>");
            }

            PrintEventLog(_world, _river.Events, River.Filters, _river);

            return(Html.ToString());
        }