public static bool EditByteArrayHandler(ByteArrayFormData data) { HexEditor form = new HexEditor(data.NodeName, data.Data, data.BytesPerElement); if (form.ShowDialog() == DialogResult.OK && form.Modified) { Array.Copy(form.Data, data.Data, data.Data.Length); return true; } else return false; }
public static bool EditByteArrayHandler(ByteArrayFormData data) { var form = new HexEditor(data.NodeName, data.Data, data.BytesPerElement); if (form.ShowDialog() == DialogResult.OK && form.Modified) { data.Data = new byte[form.Data.Length]; Array.Copy(form.Data, data.Data, data.Data.Length); return(true); } return(false); }
public override void SetRawData(byte[] data) { _textBox.Text = HexEditor.RawToText(data, BytesPerElem); RebuildElementIndex(); }
public override byte[] GetRawData() { return(HexEditor.TextToRaw(_textBox.Text, BytesPerElem)); }