Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmSinhVien frm = new frmSinhVien();

            frm.IsAdd = true;
            frm.ShowDialog();
            if (frm.Result)
            {
                LoadData();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }