Beispiel #1
0
 //botão do Menu
 private void btnIniciar_Click(object sender, EventArgs e)
 {
     if (btnIniciar.Text == "&Iniciar Trunfo Elementar")
     {
         frmJogo Jogo = new frmJogo(this);
         Jogo.Show();
         this.Hide();
     }
 }
Beispiel #2
0
        //botão do Menu
        private void btnIniciar_Click(object sender, EventArgs e)
        {
            if (btnIniciar.Text == "&Iniciar Trunfo Elementar")
            {
                Jogo.Show();
                this.Hide();
            }

            if (btnIniciar.Text == "&Cadastrar Cartas")
            {
                Cadastro.Show();
                this.Hide();
            }

            if (btnIniciar.Text == "&Consultar Cartas")
            {
                Consulta.Show();
                this.Hide();
            }
        }