public virtual void Save() { ModelList.BeginSave((s, r) => { if (r.Error != null) { throw r.Error; } ModelList = (TCslaModelList)r.NewObject; NotifyOfPropertyChange(() => CanSave); }); }
public virtual void Save() { ModelList.BeginSave((s, r) => { if (r.Error != null) { throw r.Error; } ModelList = (PhraseList)r.NewObject; //propagate new PhraseEdits to their ViewModels PopulateItems(ModelList); NotifyOfPropertyChange(() => CanSave); }); }