private void btnAdd_Click(object sender, EventArgs e) { frmSinhVien frm = new frmSinhVien(); frm.IsAdd = true; frm.ShowDialog(); if (frm.Result) { LoadData(); } }
private void btnEdit_Click(object sender, EventArgs e) { string maSV = dgvSinhVien.CurrentRow.Cells["MaSV"].Value.ToString(); frmSinhVien frm = new frmSinhVien(); frm.IsAdd = false; frm.MaSV = maSV; frm.ShowDialog(); if (frm.Result) { LoadData(); } }