private void HienThiDanhSachNgonNgu()
        {
            DataTable ngonNgu = new DataTable();

            ngonNgu = bd.LayDanhSachNgonNgu(ref err);
            dgvNgonNgu.DataSource = ngonNgu;
        }
 private void dgvNgonNgu_Click(object sender, EventArgs e)
 {
     if (dgvNgonNgu.Rows.Count > 0)
     {
         ngonNgu             = new NgonNgu();
         ngonNgu.MaNgoaiNgu  = dgvNgonNgu.CurrentRow.Cells["colMaNgonNgu"].Value.ToString();
         ngonNgu.TenNgoaiNgu = dgvNgonNgu.CurrentRow.Cells["colTenNgonNgu"].Value.ToString();
     }
 }
 private void LayThongTinChucVuTuControl()
 {
     ngonNgu             = new NgonNgu();
     ngonNgu.MaNgoaiNgu  = txtMaNgonNgu.Text;
     ngonNgu.TenNgoaiNgu = txtTenNgonNgu.Text;
 }
 private void LayDuLieuVaoControl(NgonNgu ngonNgu)
 {
     txtMaNgonNgu.Text  = ngonNgu.MaNgoaiNgu;
     txtTenNgonNgu.Text = ngonNgu.TenNgoaiNgu;
 }