コード例 #1
0
 private void HandleRecipeTapped(string obj)
 {
     SelectedRecipe      = RecipeDataStore.GetItemAsync(obj).Result;
     IsDetailViewVisible = false;
     IsWebViewVisible    = true;
     RecipeWebViewSource = SelectedRecipe.RecipeUrl;
 }
コード例 #2
0
ファイル: Recipe.cs プロジェクト: cainspencerm/Fridgr
        public Recipe(ObjectId id)
        {
            var item = DataStore.GetItemAsync(id.ToString()).Result;

            Id           = item.Id;
            AuthorId     = item.AuthorId;
            Author       = item.Author;
            Title        = item.Title;
            Description  = item.Description;
            Ingredients  = item.Ingredients;
            Directions   = item.Directions;
            RatingsTotal = item.RatingsTotal;
            RatingsCount = item.RatingsCount;
            CreationDate = item.CreationDate;
        }