Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            gameScreen ayar = new gameScreen();

            ayar.Show();
            this.Hide();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (!(textBox3.Text == "" && textBox4.Text == ""))
            {
                _dikey = Convert.ToInt32(textBox3.Text);
                _yatay = Convert.ToInt32(textBox4.Text);
            }

            if (!(textBox5.Text == ""))
            {
                if (Convert.ToInt32(textBox5.Text) > 100 || Convert.ToInt32(textBox5.Text) < 10)
                {
                    MessageBox.Show("Girdiğiniz sayı 10 ile 100 arasında olmalıdır.", "Hatalı Giriş Yaptınız");
                }
                _altinIhtimal = Convert.ToInt32(textBox5.Text);
            }
            if (!(textBox13.Text == ""))
            {
                _adimMaaliyeti = Convert.ToInt32(textBox13.Text);
            }
            if (!(textBox6.Text == ""))
            {
                _gizliAltinIhtimal = Convert.ToInt32(textBox6.Text);
            }
            if (!(textBox7.Text == ""))
            {
                _oyuncuAltini = Convert.ToInt32(textBox7.Text);
            }
            if (!(textBox8.Text == ""))
            {
                _adimSayisi = Convert.ToInt32(textBox8.Text);
            }
            if (!(textBox9.Text == ""))
            {
                _aMaaliyet = Convert.ToInt32(textBox9.Text);
            }
            if (!(textBox10.Text == ""))
            {
                _bMaaliyet = Convert.ToInt32(textBox10.Text);
            }
            if (!(textBox11.Text == ""))
            {
                _cMaaliyet = Convert.ToInt32(textBox11.Text);
            }
            if (!(textBox12.Text == ""))
            {
                _cOzelAltinSayisi = Convert.ToInt32(textBox12.Text);
            }
            if (!(textBox14.Text == ""))
            {
                _dMaaliyet = Convert.ToInt32(textBox14.Text);
            }
            gameScreen oyna = new gameScreen();

            oyna.Show();
            this.Hide();
        }