private void btnUpdateInfo_Click_1(object sender, EventArgs e) { if (game.playerList[game.currentHand - 1].isUser(txtUsername.Text, txtPassword.Text)) //Check if username and password are valid before opening form { frmNewUser frmNewUser = new frmNewUser(txtUsername, txtPassword, game.playerList[game.currentHand - 1]); frmNewUser.StartPosition = FormStartPosition.CenterScreen; frmNewUser.Show(); } }
private void btnNewUser_Click(object sender, EventArgs e) { // game.player.AddUser(txtUsername.Text, txtPassword.Text, "Player", "Last", "6056056055", new CreditCard("1234567890123456", "123", DateTime.Now)); frmNewUser frmNewUser = new frmNewUser(txtUsername, txtPassword); frmNewUser.StartPosition = FormStartPosition.CenterScreen; frmNewUser.Show(); // enableBetting(); }