private void button1_Click(object sender, EventArgs e) { IBlock genesis = new Block(new byte[] { 0x00, 0x00, 0x00 }); BlockChain newChain = new BlockChain(genesis); //keeps creating new chain so data is lost after new vote need fixing if (radioButton1.Checked == true) { if (radioButton3.Checked == true) { textBox1.Clear(); textBox1.AppendText(s.Add(1, 1)); } else if (radioButton4.Checked == true) { textBox1.Clear(); textBox1.AppendText(s.Add(1, 2)); } else { } } else if (radioButton2.Checked == true) { if (radioButton3.Checked == true) { textBox1.Clear(); textBox1.AppendText(s.Add(2, 1)); } else if (radioButton4.Checked == true) { textBox1.Clear(); textBox1.AppendText(s.Add(2, 2)); } else { } } else { } }
protected override void OnRun() { Sync.Add(Complete, _loopType); }