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

            frm.IsAdd = true;
            frm.ShowDialog();
            if (frm.Result)
            {
                LoadData();
            }
        }
Beispiel #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            string  maKhoa = dgvKhoa.CurrentRow.Cells["MaKhoa"].Value.ToString();
            frmKhoa frm    = new frmKhoa();

            frm.IsAdd  = false;
            frm.MaKhoa = maKhoa;
            frm.ShowDialog();

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