Beispiel #1
0
 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));
 }
Beispiel #2
0
 public void Set(string key, object value)
 {
     kvc.Set(data, key, value);
 }