Ejemplo n.º 1
0
        public void registration(string username, string password)
        {
            myuser user = new myuser();

            user.Username = username;
            user.Password = password;
            data.datalist.Add(user);
        }
Ejemplo n.º 2
0
        public bool registration(string username, string password, string type)
        {
            bool   check = true;
            myuser user  = new myuser();

            if ((username == "") && (password == "") && (type == ""))
            {
                check = false;
            }
            else
            {
                user.Username = username;
                user.Password = password;
                user.Type     = type;
                data.datalist.Add(user);
            }
            return(check);
        }