Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecipeViewModel"/> class.
 /// </summary>
 public WorkplanViewModel(WorkplanModel model)
 {
     Model = model;
 }