Ejemplo n.º 1
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Şehirler şehir = new Şehirler();

            if (comboBox1.Text == Sehir.Ankara.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Sehir.Antalya.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Sehir.Mardin.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Sehir.Nevşehir.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Sehir.Trabzon.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Sehir.İstanbul.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
        }
Ejemplo n.º 2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Şehirler ülke = new Şehirler();

            if (comboBox1.Text == Ulke.Almanya.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Ulke.Arjantin.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Ulke.İtalya.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Ulke.Japonya.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
            else if (comboBox1.Text == Ulke.Norveç.ToString())
            {
                BaseClass.isim = comboBox1.Text;
                button2.Text   = BaseClass.isim;
            }
        }