Ejemplo n.º 1
0
        //Nhan dien nguoi dang nhap la Nhan Vien hay Member
        int DefineAccount()
        {
            DataTable dt = new DataTable();

            dt = login.getUserID(GLOBAL.username);
            int id = Convert.ToInt32(dt.Rows[0][0].ToString());

            return(id);
        }
Ejemplo n.º 2
0
        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();
        }