// sırasıyla önce kalkış seferi, sonra varış seferi, sonra otobüs plakası seçilince koltuklar (butonlar) gelmektedir :
        private void comboBoxOtobus_SelectedIndexChanged(object sender, EventArgs e)
        {
            Koltuk(comboBoxOtobus.SelectedItem.ToString(), false); // eski koltukları flowlayout'dan temizledik
            Koltuk(comboBoxOtobus.SelectedItem.ToString(), true);  // flowlayout'u butonlarla doldurduk
            labelKoltukSec.Visible = true;                         // kullanıcıya bilgi verildi.
            Form_OtobusSecim frm = new Form_OtobusSecim();

            if (comboBoxOtobus.SelectedIndex == 0)
            {
                lblAracAdi.Text     = "V O L K S W A G E N";
                pictureBox1.Visible = true;
                pictureBox2.Visible = false;
                pictureBox3.Visible = false;
            }
            else if (comboBoxOtobus.SelectedIndex == 1)
            {
                lblAracAdi.Text     = "F O R D";
                pictureBox2.Visible = true;
                pictureBox1.Visible = false;
                pictureBox3.Visible = false;
            }
            else if (comboBoxOtobus.SelectedIndex == 2)
            {
                lblAracAdi.Text     = "M E R C E D E S";
                pictureBox2.Visible = false;
                pictureBox1.Visible = false;
                pictureBox3.Visible = true;
            }
        }
Esempio n. 2
0
        private void buttonBiletKes_Click(object sender, EventArgs e)
        {
            Form_OtobusSecim sec = new Form_OtobusSecim();

            sec.ShowDialog();
        }