TextChangedEventArgs.cs 806 B

123456789101112131415161718192021222324252627282930313233343536
  1. using NStack;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Terminal.Gui {
  8. /// <summary>
  9. /// Event args for events where text is changed
  10. /// </summary>
  11. public class TextChangedEventArgs : EventArgs {
  12. /// <summary>
  13. /// Creates a new instance of the <see cref="TextChangedEventArgs"/> class
  14. /// </summary>
  15. /// <param name="oldValue"></param>
  16. /// <param name="newValue"></param>
  17. public TextChangedEventArgs (ustring oldValue, ustring newValue)
  18. {
  19. OldValue = oldValue;
  20. NewValue = newValue;
  21. }
  22. /// <summary>
  23. /// The old value before the text changed
  24. /// </summary>
  25. public ustring OldValue { get; }
  26. /// <summary>
  27. /// The new value
  28. /// </summary>
  29. public ustring NewValue { get; }
  30. }
  31. }