HexViewEditEventArgs.cs 880 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // HexView.cs: A hexadecimal viewer
  3. //
  4. // TODO:
  5. // - Support searching and highlighting of the search result
  6. // - Bug showing the last line
  7. //
  8. using System;
  9. namespace Terminal.Gui {
  10. /// <summary>
  11. /// Defines the event arguments for <see cref="HexView.Edited"/> event.
  12. /// </summary>
  13. public class HexViewEditEventArgs : EventArgs {
  14. /// <summary>
  15. /// Creates a new instance of the <see cref="HexViewEditEventArgs"/> class.
  16. /// </summary>
  17. /// <param name="position"></param>
  18. /// <param name="newValue"></param>
  19. public HexViewEditEventArgs (long position, byte newValue)
  20. {
  21. Position = position;
  22. NewValue = newValue;
  23. }
  24. /// <summary>
  25. /// Gets the location of the edit.
  26. /// </summary>
  27. public long Position { get; }
  28. /// <summary>
  29. /// Gets the new value for that <see cref="Position"/>.
  30. /// </summary>
  31. public byte NewValue { get; }
  32. }
  33. }