Esempio n. 1
0
        private void BtnSil_Click(object sender, EventArgs e)
        {
            MusteriCrud mc    = new MusteriCrud();
            int         satir = dataGridView1.CurrentRow.Index;
            string      id    = dataGridView1.Rows[satir].Cells["musteri_id"].Value.ToString();

            mc.musteriSil(id);
            dataGridView1.DataSource = mc.tablolar();
        }
Esempio n. 2
0
        private void BtnGüncelle_Click(object sender, EventArgs e)
        {
            MusteriCrud mc    = new MusteriCrud();
            int         satir = dataGridView1.CurrentRow.Index;
            string      id    = dataGridView1.Rows[satir].Cells["musteri_id"].Value.ToString();
            string      tc    = Convert.ToString(TbTc.Text);

            mc.musteriGuncelle(tc, id, TbAd.Text, TbSoyad.Text, TbTel.Text, TbAdres.Text);
            dataGridView1.DataSource = mc.tablolar();
        }
Esempio n. 3
0
 private void BtnKaydet_Click(object sender, EventArgs e)
 {
     if (TbAd.Text == null || TbAd.Text == "" || TbAd.Text == " " || TbAdres.Text == null || TbAdres.Text == "" || TbAdres.Text == " " || TbSoyad.Text == null || TbSoyad.Text == "" || TbSoyad.Text == " " || TbTc.Text == null || TbTc.Text == "" || TbTel.Text == null || TbTel.Text == "")
     {
         MessageBox.Show("Boş Kutucuk Bırakmayınız");
     }
     else
     {
         MusteriCrud mc = new MusteriCrud();
         mc.ekle(TbTc.Text, TbAd.Text, TbSoyad.Text, TbTel.Text, TbAdres.Text);
         dataGridView1.DataSource = mc.tablolar();
     }
 }
Esempio n. 4
0
        private void HastaEkran_Load(object sender, EventArgs e)
        {
            MusteriCrud mc = new MusteriCrud();

            dataGridView1.DataSource = mc.tablolar();
        }