private void button7_Click(object sender, EventArgs e)
 {
     baglanti.Open();
     komut.Connection  = baglanti;
     komut.CommandText = "SELECT * FROM filmekle where Salon='" + textBox4.Text + "'AND Seans_Gunu='" + textBox5.Text + "'AND Seans_saati='" + textBox11.Text + "'AND Film_adı='" + textBox3.Text + "'";
     dr = komut.ExecuteReader();
     if (textBox11.Text == "" || textBox3.Text == "" || textBox4.Text == "" || textBox5.Text == "")
     {
         MessageBox.Show("Bir Film Seçiniz");
     }
     else if (dr.Read())
     {
         if (textBox4.Text == "1")
         {
             Salon1_k.filmadı    = textBox3.Text;
             Salon1_k.seansgunu  = textBox5.Text;
             Salon1_k.seanssaati = textBox11.Text;
             Salon1_k.kllnc_adı  = textBox2.Text;
             Salon1_k sln1 = new Salon1_k();
             sln1.Show();
             this.Hide();
         }
         else if (textBox4.Text == "2")
         {
             Salon2_k.filmadı2    = textBox3.Text;
             Salon2_k.seansgunu2  = textBox5.Text;
             Salon2_k.seanssaati2 = textBox11.Text;
             Salon2_k.kllnc_adı   = textBox2.Text;
             Salon2_k sln2 = new Salon2_k();
             sln2.Show();
             this.Hide();
         }
     }
     baglanti.Close();
 }
Example #2
0
        void ReloadForm()
        {
            Salon1_k sln1 = new Salon1_k();

            sln1.Show();
            this.Close();
        }