Exemplo n.º 1
0
 private void btnModificar_Click(object sender, EventArgs e)
 {
     if (grDatos.SelectedCells.Count > 0)
     {
         idConw = Convert.ToInt32(grDatos.CurrentRow.Cells["pkUsuario"].Value);
         frmAgregarUsuario f = new frmAgregarUsuario(this);
         f.ShowDialog();
     }
     else
     {
         MessageBox.Show("No hay elementos");
     }
 }
Exemplo n.º 2
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            frmAgregarUsuario nue = new frmAgregarUsuario();

            nue.Show();
        }