Beispiel #1
0
        private void btnPogodi_Click(object sender, EventArgs e)
        {
            checkResult();


            if (osvoeniPoeni % 10 == 0)
            {
                bonus();
            }


            MyRavenka       = new Ravenka();
            tbOperand1.Text = MyRavenka.Operand1.ToString();
            tbOperand2.Text = MyRavenka.Operand2.ToString();
            tbOperator.Text = MyRavenka.CurrentZnak.ToString();
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (tbIgrac.Text == "")
            {
                MessageBox.Show("Vnesete ime!");
                return;
            }

            resetValues();
            timer1.Start();

            MyRavenka         = new Ravenka();
            tbOperand1.Text   = MyRavenka.Operand1.ToString();
            tbOperand2.Text   = MyRavenka.Operand2.ToString();
            tbOperator.Text   = MyRavenka.CurrentZnak.ToString();
            btnPogodi.Enabled = true;
        }