Esempio n. 1
0
 private void UpdatePreheatTemperature()
 {
     if (foods.Any())
     {
         var cookingMethod = CookingMethodFactory.GenerateCookingMethod(Foods.ToList());
         PreheatTemperature = cookingMethod.First().Temperature;
     }
     else
     {
         PreheatTemperature = null;
     }
 }
Esempio n. 2
0
        internal void StartCooking(List <Food> foods)
        {
            var milestones = CookingMethodFactory.GenerateCookingMethod(foods);

            Milestones.ReplaceWith(milestones);
            CancelCookingCommand.RaiseCanExecuteChanged();
            RaisePropertyChanged(() => ShowMilestones);
            messenger.Publish(new MilestonesCreatedMessage(this)
            {
                Milestones = milestones.ToList()
            });
        }