public void UpdateModel(RecipeDefinitionModel model) { Model = model; NotifyOfPropertyChange(nameof(HasWorkplans)); NotifyOfPropertyChange(nameof(DisplayName)); }
/// <summary> /// Initializes a new instance of the <see cref="RecipeDefinitionViewModel"/> class. /// </summary> public RecipeDefinitionViewModel(RecipeDefinitionModel model) { Model = model; UpdateModel(model); }