private void button1_Click(object sender, EventArgs e) { int index = 0; if (Int32.TryParse(textBox1.Text, out index)) { richTextBox1.Text = blockchain.getBlockAsString(index); } }