Esempio n. 1
0
        private void btnXoa_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            var row = GetCurrentRow();

            if (row == null)
            {
                DialogHelper.ShowMissingSelectedRow();
                return;
            }

            string maLop = row.Cells["MALOP"].Value.ToString();
            string maGV  = GetEqualName(row.Cells["MAGV"].Value.ToString(), dtGiangVien, 1, 0);

            LopHoc    lophoc  = new LopHoc();
            CT_LopHoc chitiet = new CT_LopHoc();

            chitiet.delete(AccountHelper.getAccountId(), AccountHelper.getAccoutPassword(), maLop, maGV);
            lophoc.delete(AccountHelper.getAccountId(), AccountHelper.getAccoutPassword(), maLop);

            ShowTable();
            this.Cursor = Cursors.Arrow;
        }