Пример #1
0
        private void btnXoa_Click(object sender, EventArgs e)
        {
            lockControl();
            string query = "delete from PHONG where MaPhong = '" + txtMaPhong.Text.Trim() + "'";

            DAL.sqlConnect conn = new DAL.sqlConnect();
            conn.execNonQuery(query);
        }
Пример #2
0
        private void btnXoa_Click(object sender, EventArgs e)
        {
            string query = "delete from CHUCVU where MaChucVu = '" + txtMaCV.Text.Trim() + "'";

            DAL.sqlConnect conn = new DAL.sqlConnect();
            conn.execNonQuery(query);
            lockControl();
        }