Change.cs 779 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using PixiEditorDotNetCore3.Models;
  8. namespace PixiEditorDotNetCore3.Models
  9. {
  10. [Serializable]
  11. public class Change
  12. {
  13. public object OldValue { get; set; }
  14. public object NewValue { get; set; }
  15. public string Description { get; set; }
  16. public string Property { get; set; }
  17. public Change(string property, object oldValue, string description = "")
  18. {
  19. Property = property;
  20. OldValue = oldValue;
  21. Description = description;
  22. NewValue = OldValue;
  23. }
  24. public Change()
  25. {
  26. }
  27. }
  28. }