protected override void OnRedo() { base.OnRedo(); var field = DiffUtility.GetField(this.dataItem, this.fieldName); DiffUtility.SetField(this.destItem, this.fieldName, field); }
public CopyFieldAction(object dataItem, object destItem, string fieldName) { this.dataItem = dataItem; this.destItem = destItem; this.fieldName = fieldName; this.oldField = DiffUtility.GetField(destItem, fieldName); }