From 9733ba6de3f1c34bfb6fc4ee939e51ecbab37b69 Mon Sep 17 00:00:00 2001 From: BDisp Date: Fri, 17 Mar 2023 16:59:04 +0000 Subject: [PATCH] Grouping HexView events in HexViewEventArgs.cs file. --- Terminal.Gui/Views/HexViewEditEventArgs.cs | 37 ---------------------- Terminal.Gui/Views/HexViewEventArgs.cs | 27 ++++++++++++++++ 2 files changed, 27 insertions(+), 37 deletions(-) delete mode 100644 Terminal.Gui/Views/HexViewEditEventArgs.cs diff --git a/Terminal.Gui/Views/HexViewEditEventArgs.cs b/Terminal.Gui/Views/HexViewEditEventArgs.cs deleted file mode 100644 index 76185b6c4..000000000 --- a/Terminal.Gui/Views/HexViewEditEventArgs.cs +++ /dev/null @@ -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 { - /// - /// Defines the event arguments for event. - /// - public class HexViewEditEventArgs : EventArgs { - - /// - /// Creates a new instance of the class. - /// - /// - /// - public HexViewEditEventArgs (long position, byte newValue) - { - Position = position; - NewValue = newValue; - } - - /// - /// Gets the location of the edit. - /// - public long Position { get; } - - /// - /// Gets the new value for that . - /// - public byte NewValue { get; } - } -} diff --git a/Terminal.Gui/Views/HexViewEventArgs.cs b/Terminal.Gui/Views/HexViewEventArgs.cs index 7847f68d0..3af524b06 100644 --- a/Terminal.Gui/Views/HexViewEventArgs.cs +++ b/Terminal.Gui/Views/HexViewEventArgs.cs @@ -40,4 +40,31 @@ namespace Terminal.Gui { BytesPerLine = lineLength; } } + + /// + /// Defines the event arguments for event. + /// + public class HexViewEditEventArgs : EventArgs { + + /// + /// Creates a new instance of the class. + /// + /// + /// + public HexViewEditEventArgs (long position, byte newValue) + { + Position = position; + NewValue = newValue; + } + + /// + /// Gets the location of the edit. + /// + public long Position { get; } + + /// + /// Gets the new value for that . + /// + public byte NewValue { get; } + } }