예제 #1
0
 public void BeginEdit()
 {
     if (!IsEditing)
     {
         BackupState = new BackupState();
     }
 }
예제 #2
0
 protected override void SetMember(string propertyName, object value)
 {
     if (IsEditing)
     {
         BackupState.SetOriginalValue(propertyName, GetPropertyInfo(propertyName).GetValue(ProxiedObject, null));
         BackupState.SetNewValue(propertyName, value);
         RaisePropertyChanged(propertyName);
     }
     else
     {
         base.SetMember(propertyName, value);
     }
 }