private static void WriteImage(StringBuilder sink, Episode episode, ComicLocation comicLocation)
 {
     if (!comicLocation.IsPublished)
     {
         sink.AppendLine($"  No published comic for {episode}.<br>");
     }
     else if (!comicLocation.WasFound)
     {
         sink.AppendLine($"  Couldn't find comic for {episode}.<br>");
     }
     else
     {
         sink.AppendLine($"  <img alt='{episode}' src='{comicLocation.Url}'><br>");
     }
 }
Beispiel #2
0
 private void WriteImage(StringBuilder sink, Episode episode, ComicLocation comicLocation)
 {
     if (!comicLocation.IsPublished)
     {
         sink.AppendFormat("  No published comic for {0}.<br>\r\n", episode);
     }
     else if (!comicLocation.WasFound)
     {
         sink.AppendFormat("  Couldn't find comic for {0}.<br>\r\n", episode);
     }
     else
     {
         sink.AppendFormat("  <img alt='{0}' src='{1}'><br>\r\n", episode, comicLocation.Url);
     }
 }