Example #1
0
        private void dgvDepartamento_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmDepartamentoForm frm = new frmDepartamentoForm();
            var row = dgvDepartamento.CurrentRow;

            frm.isEditing = true;
            frm.Id = (int)row.Cells["Id"].Value;
            frm.Departamento = row.Cells["Nombre"].Value.ToString();

            frm.ShowDialog();
        }
Example #2
0
 private void btnAgregar_Click(object sender, EventArgs e)
 {
     frmDepartamentoForm frm = new frmDepartamentoForm();
     frm.ShowDialog();
 }