TextChangedEventArgs.cs 677 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // TextField.cs: single-line text editor with Emacs keybindings
  3. //
  4. // Authors:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. using System;
  8. using NStack;
  9. namespace Terminal.Gui {
  10. /// <summary>
  11. /// Event args for the <see cref="TextField.TextChanged"/> event
  12. /// </summary>
  13. public class TextChangedEventArgs : EventArgs {
  14. /// <summary>
  15. /// Creates a new instance of the <see cref="TextChangedEventArgs"/> class
  16. /// </summary>
  17. /// <param name="oldValue"></param>
  18. public TextChangedEventArgs (ustring oldValue)
  19. {
  20. OldValue = oldValue;
  21. }
  22. /// <summary>
  23. /// The old value before the text changed
  24. /// </summary>
  25. public ustring OldValue { get; }
  26. }
  27. }