private void UpdatePreheatTemperature() { if (foods.Any()) { var cookingMethod = CookingMethodFactory.GenerateCookingMethod(Foods.ToList()); PreheatTemperature = cookingMethod.First().Temperature; } else { PreheatTemperature = null; } }
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() }); }