public void CancelEdit() { if (!Editing) { return; } OnCancelEdit(); foreach (var kv in _originals) { _kvc.Set(this, kv.Key, kv.Value); } _originals = null; RaisePropertyChanged(nameof(HasChanges)); RaisePropertyChanged(nameof(Editing)); }
public void Set(string key, object value) { kvc.Set(data, key, value); }