예제 #1
0
        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                contact.HomePhone     = txtHomePhone.Text.Trim();
                contact.MobilePhone   = txtMobilePhone.Text.Trim();
                contact.BusinessPhone = txtBusinessPhone.Text.Trim();
                contact.BusinessFax   = txtBusinessFax.Text.Trim();
                contact.Email         = txtEmail.Text.Trim();
                contact.Address       = txtAddress.Text.Trim();
                contact.IPPhone       = txtIPPhone.Text.Trim();

                contactManagement.UpdateUserProfile(contact);

                MessageBox.Show("Update successful!");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }