private void OpenHexEditorFor(CVariable editvar) { var editor = new frmHexEditorView() { File = editvar.cr2w }; if (editvar is IByteSource) { editor.Bytes = ((IByteSource)editvar).Bytes; } editor.Text = "Hex Viewer [" + editvar.FullName + "]"; editor.Show(); }
public static void OpenHexEditorFor(CVariable editvar) { var editor = new frmHexEditorView() { File = editvar.cr2w }; if (editvar is IByteSource source) { editor.Bytes = source.GetBytes(); } editor.Text = "Hex Viewer [" + editvar.GetFullName() + "]"; editor.Show(); }