Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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 = "";
        }