Exemple #1
0
 private void btnModificar_Click(object sender, EventArgs e)
 {
     if (grDatos.SelectedCells.Count > 0)
     {
         idMun = Convert.ToInt32(this.grDatos.CurrentRow.Cells["pkMunicipio"].Value);
         frmRegistroMunicipio f = new frmRegistroMunicipio(this);
         f.ShowDialog();
     }
     else
     {
         MessageBox.Show("No hay elementos");
     }
 }
Exemple #2
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            frmRegistroMunicipio nMuni = new frmRegistroMunicipio();

            nMuni.ShowDialog();
        }