private void btnXoa_Click(object sender, EventArgs e) { if (dataDSQuocTich.SelectedRows.Count > 0) { if (MessageBox.Show("Bạn xóa quốc tịch \"" + txtTen.Text + " Chứ?", "Quốc tịch", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { IEnumerator ie = (IEnumerator)dataDSQuocTich.SelectedRows.GetEnumerator(); if (ie.MoveNext()) { DataGridViewRow row = (DataGridViewRow)ie.Current; QLKTX.BusinessObject.QuocTichInfo info = new QLKTX.BusinessObject.QuocTichInfo(); info.MaQuocTich = Convert.ToInt32(row.Cells[0].Value.ToString()); ctrl.Xoa(info); } ctrl.LayDSQuocTich(dataDSQuocTich); } } }
public SinhVienInfo() { m_QuocTich = new QuocTichInfo(); m_TonGiao = new TonGiaoInfo(); m_DanToc = new DanTocInfo(); }