Exemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     zaman--;
     lblTime.Text = zaman.ToString();
     if (zaman == 0)
     {
         timer1.Enabled = false;
         FrmGameOver frm = new FrmGameOver();
         frm.ShowDialog();
     }
 }
 private void btnDevamEt_Click(object sender, EventArgs e)
 {
     this.Hide();
     if (resultId > 2)
     {
         FrmGameOver frm = new FrmGameOver();
         frm.ShowDialog();
     }
     if (FrmQuiz.id == 12)
     {
         FrmWinnerMaxPrize frm = new FrmWinnerMaxPrize();
         frm.ShowDialog();
     }
     prize.Stop();
 }
Exemplo n.º 3
0
        public void ButtonOp(Button btn)
        {
            wait.Stop();
            Message(btn);

            if (cikis == DialogResult.Yes)
            {
                if (isTrue(btn))
                {
                    correct.Play();
                    MessageBox.Show("Tebrikler Bildiniz ! Doğru Cevap :  " + quiz.trueAnswer, "Cevap");
                    this.Hide();
                    FrmPrize frm = new FrmPrize();
                    frm.ShowDialog();
                    DeleteAll();
                    refresh(btn);
                    this.Show();
                    timer1.Enabled = true;
                }
                else
                {
                    wrong.Play();
                    MessageBox.Show("Doğru cevap : " + quiz.trueAnswer, "Cevap");
                    this.Hide();
                    if (id < 3)
                    {
                        FrmGameOver frm = new FrmGameOver();
                        frm.ShowDialog();
                    }
                    if (id > 2 && id < 8 || id > 7 && id < 13)
                    {
                        senderId = id;
                        FrmPrize frm = new FrmPrize(senderId);
                        frm.ShowDialog();
                    }
                }
            }
        }