Exemplo n.º 1
0
 /// <summary>
 /// Creates a recipe with the given id, name, and rating
 /// </summary>
 /// <param name="id">
 /// The ID for this recipe.
 /// </param>
 /// <param name="name">
 /// The name for this recipe.
 /// </param>
 /// <param name="rating">
 /// The rating for this recipe.
 /// </param>
 public Recipe(long id, String name, double rating)
 {
     this.name              = name;
     this.id                = id;
     this.rating            = rating;
     this.recipeImages      = new ObservableCollection <RecipeImage>();
     this.recipeIngredients = new ObservableCollection <RecipeIngredient>();
     this.recipeSteps       = new ObservableCollection <RecipeStep>();
     this.journalEntries    = new RecipeJournal();
 }
Exemplo n.º 2
0
 public void setJournalEntries(RecipeJournal entries)
 {
     this.journalEntries = entries;
     journalEntries.sortJournal();
 }