Grouping HexView events in HexViewEventArgs.cs file.

This commit is contained in:
BDisp
2023-03-17 16:59:04 +00:00
parent ebb898aa3e
commit 9733ba6de3
2 changed files with 27 additions and 37 deletions

View File

@@ -1,37 +0,0 @@
//
// HexView.cs: A hexadecimal viewer
//
// TODO:
// - Support searching and highlighting of the search result
// - Bug showing the last line
//
using System;
namespace Terminal.Gui {
/// <summary>
/// Defines the event arguments for <see cref="HexView.Edited"/> event.
/// </summary>
public class HexViewEditEventArgs : EventArgs {
/// <summary>
/// Creates a new instance of the <see cref="HexViewEditEventArgs"/> class.
/// </summary>
/// <param name="position"></param>
/// <param name="newValue"></param>
public HexViewEditEventArgs (long position, byte newValue)
{
Position = position;
NewValue = newValue;
}
/// <summary>
/// Gets the location of the edit.
/// </summary>
public long Position { get; }
/// <summary>
/// Gets the new value for that <see cref="Position"/>.
/// </summary>
public byte NewValue { get; }
}
}

View File

@@ -40,4 +40,31 @@ namespace Terminal.Gui {
BytesPerLine = lineLength;
}
}
/// <summary>
/// Defines the event arguments for <see cref="HexView.Edited"/> event.
/// </summary>
public class HexViewEditEventArgs : EventArgs {
/// <summary>
/// Creates a new instance of the <see cref="HexViewEditEventArgs"/> class.
/// </summary>
/// <param name="position"></param>
/// <param name="newValue"></param>
public HexViewEditEventArgs (long position, byte newValue)
{
Position = position;
NewValue = newValue;
}
/// <summary>
/// Gets the location of the edit.
/// </summary>
public long Position { get; }
/// <summary>
/// Gets the new value for that <see cref="Position"/>.
/// </summary>
public byte NewValue { get; }
}
}