Example #1
0
 private void btnModificarCliente_Click(object sender, EventArgs e)
 {
     if (dgvClientes.SelectedCells.Count > 0)
     {
         int id = Convert.ToInt32(dgvClientes.SelectedCells[0].Value.ToString());
         modCliente = new ModificarCliente(id);
         modCliente.ShowDialog(this);
         refrescarTabla(sqlDEFECTO);
     }
     else
     {
         MessageBox.Show("Selecciona un registro");
     }
 }
 private void btnModificarCliente_Click(object sender, EventArgs e)
 {
     if (dgvClientes.SelectedCells.Count > 0)
     {
         int id = Convert.ToInt32(dgvClientes.SelectedCells[0].Value.ToString());
         modCliente = new ModificarCliente(id);
         modCliente.ShowDialog(this);
         refrescarTabla(sqlDEFECTO);
     }
     else
     {
         MessageBox.Show("Selecciona un registro");
     }
 }