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