コード例 #1
0
 private void Notify_DishSelected(object sender, DishChangedArgs e)
 {
     Dish = new CraftedDish(e.NewDish);
     // Notify other docks that rely on the selected dish.
     OnDishChanged(e);
     SetBindings();
 }
コード例 #2
0
        public void Update(object sender, DishChangedArgs e)
        {
            var dish = e.NewDish;

            if (dish != null)
            {
                Label_BaseRating.Text = dish.BaseRating.ToString();
                Label_CostPerMonthDescription.Text = dish.CostPerMonthDescription;
                Label_PriceDescription.Text        = dish.PriceDescription;
                Label_TasteDescription.Text        = dish.TasteDescription;
                Label_AppealDescription.Text       = dish.AppealDescription;
                Label_RecipeDescription.Text       = dish.RecipeDescription;
                Label_Note.Text = dish.Note;
            }
        }