示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Contact c = new Contact();

            c.FirstName = txtfirstName.Text;
            c.LastName  = txtlastName.Text;
            c.Phone     = txtPhone.Text;



            listContacts.Items.Add(c.ToString());
        }