Example #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "" && comboBox1.Text != "")
     {
         film yenifilm = new film();
         yenifilm.fAdi     = textBox1.Text;
         yenifilm.fTur     = textBox2.Text;
         yenifilm.sure     = textBox3.Text;
         yenifilm.resim    = _resimsakla;
         yenifilm.salon_id = Convert.ToInt32(comboBox1.Text);
         db.films.InsertOnSubmit(yenifilm);
         db.SubmitChanges();
         MessageBox.Show("Film eklendi.");
         textBox1.Clear();
         textBox2.Clear();
         textBox3.Clear();
         comboBox1.Text    = "";
         pictureBox1.Image = null;
     }
     else
     {
         MessageBox.Show("Lütfen alanları eksiksiz doldurun!");
     }
 }
Example #2
0
 partial void Deletefilm(film instance);
Example #3
0
 partial void Updatefilm(film instance);
Example #4
0
 partial void Insertfilm(film instance);
Example #5
0
 private void detach_films(film entity)
 {
     this.SendPropertyChanging();
     entity.salon = null;
 }
Example #6
0
 private void attach_films(film entity)
 {
     this.SendPropertyChanging();
     entity.salon = this;
 }