private void btn_Tourist_Click(object sender, EventArgs e)
        {
            Form_Tourist form_Tourist = new Form_Tourist();

            form_Tourist.Show();
            this.Hide();
        }
Exemplo n.º 2
0
 private void button_Planla_Click(object sender, EventArgs e)
 {
     if (textBox_Isim.Text == "" || comboBox_Dil.Text == "" || comboBox_Lokasyon.Text == "" || comboBox_Mevsim.Text == "" || comboBox_Tur.Text == "")
     {
         MessageBox.Show("Lütfen tüm alanların dolu olduğundan emin olun", "Eksik Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         Class_Tourist_YerAyarlama class_Tourist_YerAyarlama = new Class_Tourist_YerAyarlama(comboBox_Mevsim.Text, comboBox_Lokasyon.Text, comboBox_Dil.Text, comboBox_Tur.Text);
         DialogResult dialogResult = MessageBox.Show("Sevgili " + textBox_Isim.Text + " Senin için en uygun seyehat şehri " + class_Tourist_YerAyarlama.SehirSec() + "\nBu şehir tam senin aradığın şehir", "İyi Tatiller", MessageBoxButtons.RetryCancel, MessageBoxIcon.Information);
         if (dialogResult == DialogResult.Retry)
         {
             Form_Tourist form_Tourist = new Form_Tourist();
             form_Tourist.Show();
             this.Hide();
         }
         else if (dialogResult == DialogResult.Cancel)
         {
             Form_Giris form_Giris = new Form_Giris();
             form_Giris.Show();
             this.Hide();
         }
     }
 }