Ejemplo n.º 1
0
        //user is creating their account
        private void createAccountButton_Click(object sender, EventArgs e)
        {
            if (usernameBox.TextLength != 0 && userPasswordBox.TextLength != 0)
            {
                String        userName = usernameBox.Text;
                String        password = userPasswordBox.Text;
                List <string> empty    = new List <string>();

                //Call to User to save user related data
                User login = new User(userName, 0, password, empty, empty);
                login.createAccount(login, this);
            }
            else
            {
                MessageBox.Show("Enter password and username on this page, we will confirm your password.");
            }
        }