Exemple #1
0
        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;
        }
Exemple #2
0
        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;
            }
        }