示例#1
0
        private void Errou_a_Pergunta()
        {
            label_r1.Enabled = false;
            label_r2.Enabled = false;
            label_r3.Enabled = false;
            label_r4.Enabled = false;

            timer_tempo.Stop();
            User.Atualizar_Estatisticas(Per.Nivel_Get(), Username_Atual);
            AdicionarTotalGanhoEConquistas();
            timer_background_errou.Start();
            FGO = new Form_Game_Over(this, Owner);
            FGO.ShowDialog();
        }
示例#2
0
        private void Form_Jogo_Load(object sender, EventArgs e)
        {
            Form_Game_Over FGO = new Form_Game_Over(this, Owner);

            label_utilizador.Select();
            User = new Utilizador();
            Per  = new Pergunta();
            Conq = new Conquista();

            label_utilizador.Text = Username_Atual;
            label_tempo.Text      = "Tempo Restante - " + tempo.ToString();
            label_nivel.Text      = "Nivel atual: " + Per.Nivel_Get().ToString();
            Per.Pergunta_Set();
            label_pergunta.Text = Per.Pergunta_Get();
            label_r1.Text       = Per.Resposta1_Get();
            label_r2.Text       = Per.Resposta2_Get();
            label_r3.Text       = Per.Resposta3_Get();
            label_r4.Text       = Per.Resposta4_Get();
            timer_tempo.Start();
        }