private void getData(object sender, EventArgs e) { string offset_str = this.dataOffset.Text; string length_str = this.dataLength.Text; int offset = HexTools.hexToInt(offset_str); byte[] data = this.requestData(offset, HexTools.hexToInt(length_str)); accessedData.Add(Tuple.Create(offset, data)); display.Text += "offset: " + HexTools.intToHex(offset) + "\r\ndata: \r\n" + HexTools.dataToPrettyString(data) + "\r\n"; }
private string makeText() { string acc = ""; foreach (Tuple <int, byte[]> data in accessedData) { acc += "offset: " + HexTools.intToOffset(data.Item1) + "\r\ndata: \r\n" + HexTools.dataToPrettyString(data.Item2) + "\r\n"; } return(acc); }