/// <summary> /// Updates the internal model and raises NotifyPropertyChanged /// </summary> /// <param name="workplanModel">The updated model instance</param> public void UpdateModel(WorkplanModel workplanModel) { Model = workplanModel; NotifyOfPropertyChange(nameof(Name)); NotifyOfPropertyChange(nameof(State)); NotifyOfPropertyChange(nameof(Version)); }
/// <summary> /// Initializes a new instance of the <see cref="RecipeViewModel"/> class. /// </summary> public WorkplanViewModel(WorkplanModel model) { Model = model; }