private void AddButton_Click(object sender, EventArgs e) { blocksListBox.Items.Clear(); chain.Add(dataTextBox.Text, userTextBox.Text); blocksListBox.Items.AddRange(chain.Blocks.ToArray()); }
private void Button1_Click(object sender, EventArgs e) { listBox1.Items.Clear(); _chain.Add(textBox1.Text, "admin"); foreach (var block in _chain.Blocks) { listBox1.Items.Add(block); } }
private void button1_Click(object sender, EventArgs e) { listBox1.Items.Clear(); _chain.Add(textBox1.Text, "User"); listBox1.Items.AddRange(_chain.Blocks.ToArray()); //foreach (var block in _chain.Blocks) //{ // listBox1.Items.Add(block); //} }