private void btBlock_Click(object sender, EventArgs e) { DataTable dt = log.getUserID(getUser); if (Convert.ToInt32(dt.Rows[0][0]) == 5) { log.updateAccount(getUser, 2, ""); } log.updateAccount(getUser, 5, "Blocked"); loadListAccount(); }
private void btCreateContract_Click(object sender, EventArgs e) { if (getID != "") { member.updateAccpuntMember(getID, "Đã duyệt"); log.updateAccount(getID, 2, null); MessageBox.Show("Approved"); loadDGVMem(); } }