Add gui panel to hex dump unknown ne resources by default.

This commit is contained in:
2018-03-03 19:12:36 +00:00
parent b78157bf4d
commit 2b4c73a78c
3 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Net.Sockets;
using Eto.Forms;
using Eto.Drawing;
using Eto.Serialization.Xaml;
namespace exeinfogui
{
public class PanelHexDump : Panel
{
TextArea txtHexDump;
public PanelHexDump()
{
XamlReader.Load(this);
}
public void Update(byte[] data)
{
txtHexDump.Text = "";
for(long pos = 0; pos < data.LongLength; pos++)
{
if(pos > 0 && pos % 4 == 0) txtHexDump.Text += " ";
txtHexDump.Text += $"{data[pos]:X2} ";
}
}
}
}