예제 #1
0
 private void button6_Click(object sender, EventArgs e)
 {
     he.Doktor.Add(new Doktor {
         D_Ad = textBoxDoktorAdi.Text, D_Soyad = textBoxDoktorSoyadi.Text, DogumYili = Convert.ToInt32(textBoxDoktorDogumYili.Text), Bransi = textBoxDoktorBransi.Text, Tcno = textBoxDoktorTc.Text
     });
     he.SaveChanges();
     dataGridViewFormPersonelDoktor.DataSource = he.Doktor.ToList();
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            he.Muayene.Add(new Muayene {
                Tarih = dateTimePicker1.Value, TCno = textBoxRandevuHastaTc.Text, Doktoru = textBoxRandevuDoktorTc.Text, Branşı = textBoxRandevuBrans.Text
            });
            he.SaveChanges();
            MessageBox.Show("Başarıyla Randevu Aldınız!!");


            this.Hide();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Muayene m = te.Muayene.First(d => d.TCno == comboBox1.Text);

            //m.Tarih = dateTimePicker1.Value;
            m.Doktoru = textBoxMuayeneGuncelleDoktorTc.Text;
            m.Branşı  = textBoxMuayeneGuncelleBrans.Text;
            m.İlac    = textBoxMuayeneGuncelleIlac.Text;

            te.SaveChanges();



            this.Hide();
        }