Example #1
0
 public static void SummarizeRecipe(RecipePage rp)
 {
     Console.WriteLine("{0,30}:{1}", "ID", rp.ID);
     Console.WriteLine("{0,30}:{1}", "Title", rp.Title);
     Console.WriteLine("{0,30}:{1}", "Description", rp.Description);
     Console.WriteLine("{0,30}:{1}", "Author", rp.Author);
     Console.WriteLine("{0,30}:{1}", "Featured", rp.Featured);
     Console.WriteLine("{0,30}:{1}", "Uses", rp.Uses);
     Console.WriteLine("{0,30}:{1}", "Favorites", rp.Favorites);
     Console.WriteLine("{0,30}:{1}", "Code", rp.Code.ToString());
 }
 public RecipeSummary(RecipePage rp)
 {
     Filename    = rp.Filename;
     Url         = rp.Url;
     ID          = rp.ID;
     Title       = rp.Title;
     Description = rp.Description;
     Author      = rp.Author;
     Featured    = rp.Featured;
     Uses        = rp.Uses;
     Favorites   = rp.Favorites;
     Code        = rp.Code;
 }