Example #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmChuyenNganh frm = new frmChuyenNganh();

            frm.IsAdd = true;
            frm.ShowDialog();
            if (frm.Result)
            {
                LoadData();
            }
        }
Example #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            string         maChuyenNganh = dgvChuyenNganh.CurrentRow.Cells["MaCN"].Value.ToString();
            frmChuyenNganh frm           = new frmChuyenNganh();

            frm.IsAdd         = false;
            frm.MaChuyenNganh = maChuyenNganh;
            frm.ShowDialog();

            if (frm.Result)
            {
                LoadData();
            }
        }