Exemplo n.º 1
0
 private void btnActualizar_Click(object sender, EventArgs e)
 {
     if (!(txtNombre.Text == "" || txtApellido.Text == "" || txtCorreo.Text == "" || txtTelefono.Text == "" || txtCelular.Text == "" || txtNota.Text == "" || ckbActualizar.Checked == false))
     {
         Agenda oAgenda = new Agenda();
         oAgenda.ActualizarContacto(txtNombre.Text, txtApellido.Text, txtCorreo.Text, long.Parse(txtTelefono.Text), long.Parse(txtCelular.Text), txtNota.Text, pcFoto);
         dataGridView1.DataSource = oAgenda.ImprimirTabla();
         limpiar();
     }
     else
     {
         MessageBox.Show("Porfavor verifica si todos los campos estan digitados, si incluye foto y si esta el check actualizar esta activo");
     }
 }