Ejemplo n.º 1
0
        private void BttnCancelar_Click(object sender, EventArgs e)
        {
            this.Hide();
            EscolherCategoria aux = new EscolherCategoria();

            aux.Closed += (s, args) => this.Close();
            aux.Show();
        }
Ejemplo n.º 2
0
        private void GameOver()
        {
            this.Hide();
            EscolherCategoria aux = new EscolherCategoria();

            aux.Closed += (s, args) => this.Close();
            aux.Show();
        }
Ejemplo n.º 3
0
        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();
        }