Пример #1
0
        private void id()
        {
            clsYazarIslem a = new clsYazarIslem();

            a.hazirid();
            txtyazarno.Text = a.zDgr;
        }
Пример #2
0
        private void suzme()
        {
            clsYazarIslem y = new clsYazarIslem();

            y.zAd               = txtadsuzme.Text;
            y.zSoyad            = txtsoyadsuzme.Text;
            y.zNo               = txtyazarnosuzme.Text;
            dgwyazar.DataSource = y.suzme();
        }
Пример #3
0
 private void btnsil_Click(object sender, EventArgs e)
 {
     if (txtyazarno.Text.Length > 0)
     {
         clsYazarIslem y = new clsYazarIslem();
         y.zNo = txtyazarno.Text;
         y.sil();
         MessageBox.Show(y.zDgr);
         btnyeni_Click(sender, e);
         datagrdDoldur();
     }
     else
     {
         MessageBox.Show("Yazar Nosunu Giriniz");
     }
 }
Пример #4
0
 private void btnbul_Click(object sender, EventArgs e)
 {
     if (txtyazarno.Text.Length > 0)
     {
         clsYazarIslem y = new clsYazarIslem();
         y.zNo = txtyazarno.Text;
         y.bul();
         txtad.Text           = y.zAd;
         txtotobiyografi.Text = y.zOtobiyografi;
         txtsoyad.Text        = y.zSoyad;
         txtyazarno.Text      = y.zNo;
         MessageBox.Show(y.zDgr);
     }
     else
     {
         MessageBox.Show("Yazar Nosunu Giriniz");
     }
 }
Пример #5
0
 private void btnguncelle_Click(object sender, EventArgs e)
 {
     if (txtyazarno.Text.Length > 0 & txtad.Text.Length > 0)
     {
         clsYazarIslem y = new clsYazarIslem();
         y.zAd           = txtad.Text;
         y.zNo           = txtyazarno.Text;
         y.zOtobiyografi = txtotobiyografi.Text;
         y.zSoyad        = txtsoyad.Text;
         y.guncelle();
         MessageBox.Show(y.zDgr);
         datagrdDoldur();
         btnyeni_Click(sender, e);
     }
     else
     {
         MessageBox.Show("Yazar Nosunu Kontrol Edip Tekrar Deneyin");
     }
 }
Пример #6
0
 private void btnkaydet_Click(object sender, EventArgs e)
 {
     if (txtyazarno.Text.Length > 0 & txtad.Text.Length > 0)
     {
         clsYazarIslem y = new clsYazarIslem();
         y.zAd           = txtad.Text;
         y.zNo           = txtyazarno.Text;
         y.zOtobiyografi = txtotobiyografi.Text;
         y.zSoyad        = txtsoyad.Text;
         y.kaydet();
         MessageBox.Show(y.zDgr);
         datagrdDoldur();
         btnyeni_Click(sender, e);
     }
     else
     {
         MessageBox.Show("Gerekli Bilgileri Giriniz");
     }
 }
Пример #7
0
        public void datagrdDoldur()
        {
            clsYazarIslem y = new clsYazarIslem();

            dgwyazar.DataSource = y.datagrdDoldur();
        }