private void btnEditContactName_Click(object sender, EventArgs e) { frmName newNameForm = new frmName(myContact.Name); newNameForm.ShowDialog(); myContact.Name = (Name)newNameForm.myName; txtBoxName.Text = myContact.Name.FullName; }
private void btnNewContactName_Click(object sender, EventArgs e) { frmName newNameForm = new frmName(); newNameForm.ShowDialog(); if (newNameForm.myName.NameID != 0) { myContact.Name = (Name)newNameForm.myName; txtBoxName.Text = myContact.Name.FullName; } }