Beispiel #1
0
        public void ifTrue()
        {
            timer1.Stop();
            splayer.Stop();
            timeLeft          = 0;
            a                 = 0;
            button1.Enabled   = true;
            button2.Enabled   = true;
            button3.Enabled   = true;
            button4.Enabled   = true;
            button1.ForeColor = Color.White;
            button2.ForeColor = Color.White;
            button3.ForeColor = Color.White;
            button4.ForeColor = Color.White;
            label1.Visible    = false;
            label2.Visible    = false;
            label3.Visible    = false;

            if (trueNum == 12)
            {
                this.Hide();
                Form4 f = new Form4();
                f.money(trueNum);
                f.ShowDialog();
            }
            else if (trueNum > 7)
            {
                jokers4.Visible = true;
                splayer.Play();
            }
            else
            {
                jokers4.Visible = false;
                splayer.Play();
            }
            trueNum = trueNum + 1;

            SoruGetir();
            CevapGetir(opNum);
            if (trueNum < 8)
            {
                SureyiBaslat();
            }
            return;
        }
Beispiel #2
0
        public void ifFalse()
        {
            if (a == 1)
            {
                splayer.Play();
            }
            else
            {
                this.Hide();
                Form4 f = new Form4();
                f.money(trueNum);
                f.ShowDialog();
                timer1.Stop();
            }
            a = 0;

            return;
        }