private void button6_Click(object sender, EventArgs e) { ADDR_CARD a = (ADDR_CARD)al[0]; textBox1.Text = a.name; textBox2.Text = a.address; textBox3.Text = a.phone; }
private void button1_Click(object sender, EventArgs e) { card = new ADDR_CARD(); card.name = textBox1.Text; card.address = textBox2.Text; card.phone = textBox3.Text; al.Add(card); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; }