Change.cs 745 B

1234567891011121314151617181920212223242526272829303132333435
  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. namespace PixiEditor.Models.DataHolders
  8. {
  9. [Serializable]
  10. public class Change
  11. {
  12. public object OldValue { get; set; }
  13. public object NewValue { get; set; }
  14. public string Description { get; set; }
  15. public string Property { get; set; }
  16. public Change(string property, object oldValue, object newValue, string description = "")
  17. {
  18. Property = property;
  19. OldValue = oldValue;
  20. Description = description;
  21. NewValue = newValue;
  22. }
  23. public Change()
  24. {
  25. }
  26. }
  27. }