Browse Source

Grouping HexView events in HexViewEventArgs.cs file.

BDisp 2 years ago
parent
commit
9733ba6de3
2 changed files with 27 additions and 37 deletions
  1. 0 37
      Terminal.Gui/Views/HexViewEditEventArgs.cs
  2. 27 0
      Terminal.Gui/Views/HexViewEventArgs.cs

+ 0 - 37
Terminal.Gui/Views/HexViewEditEventArgs.cs

@@ -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; }
-	}
-}

+ 27 - 0
Terminal.Gui/Views/HexViewEventArgs.cs

@@ -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; }
+	}
 }