private void GoToTournamentButton_Click(object sender, EventArgs e) { TournametForm tournametForm = new TournametForm(); tournametForm.Show(); this.Hide(); }
private void SignInButton_Click(object sender, EventArgs e) { if (_currentEngine.FindUser(LoginTextBox.Text, PasswordTextBox.Text)) { _tournametForm.Show(); this.Hide(); } else { ErrorMessage.Visible = true; ErrorMessage.Text = "Error: incorrect username or password"; ConfirmPasswordTextBox.Text = string.Empty; PasswordTextBox.Text = string.Empty; LoginTextBox.Text = string.Empty; } }