Example #1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            blocksListBox.Items.Clear();

            chain.Add(dataTextBox.Text, userTextBox.Text);
            blocksListBox.Items.AddRange(chain.Blocks.ToArray());
        }
Example #2
0
 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);
     }
 }
Example #3
0
        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);
            //}
        }