private void BttnCancelar_Click(object sender, EventArgs e) { this.Hide(); EscolherCategoria aux = new EscolherCategoria(); aux.Closed += (s, args) => this.Close(); aux.Show(); }
private void GameOver() { this.Hide(); EscolherCategoria aux = new EscolherCategoria(); aux.Closed += (s, args) => this.Close(); aux.Show(); }
private void bttnLogin_Click(object sender, EventArgs e) { string email = txtLogin.Text; string password = txtPassword.Text; if (ValidaInputs(email, password)) { return; } User user = UserService.SearchUser(email, password); if (user == null) { InvalidLogin(); return; } this.Hide(); EscolherCategoria aux = new EscolherCategoria(); aux.Closed += (s, args) => this.Close(); aux.Show(); }