private void btnDegistir_Click(object sender, EventArgs e)
 {
     if (txtAd.Text.Trim() != "" && txtSoyad.Text.Trim() != "" && txtSifre.Text.Trim() != "" && txtTurAd.Text.Trim() != "")
     {
         if (txtSifre.Text == txtSifreTekrar.Text)
         {
             cKullanici k     = new cKullanici();
             bool       Sonuc = k.KullaniciKontrol(Convert.ToInt32(txtKullaniciID.Text), txtAd.Text, txtSoyad.Text);
             if (Sonuc)
             {
                 MessageBox.Show("Bu Kullanıcı önceden kayıtlı!!");
             }
             else
             {
                 k.KullaniciID   = Convert.ToInt32(txtKullaniciID.Text);
                 k.KullaniciTipi = Convert.ToInt32(txtTurID.Text);
                 k.Adi           = txtAd.Text;
                 k.Soyadi        = txtSoyad.Text;
                 k.Sifre         = txtSifre.Text;
                 Sonuc           = k.KullaniciGuncelle(k);
                 if (Sonuc)
                 {
                     MessageBox.Show("Kullanıcı Bilgileri Güncellendi");
                     k.KullanicilariGetir(lvKullanicilar);
                     btnSil.Enabled      = false;
                     btnDegistir.Enabled = false;
                     btnKaydet.Enabled   = true;
                     temizle();
                     txtAd.Focus();
                 }
                 else
                 {
                     MessageBox.Show("Kulanıcı bilgileri Güncellenemedi", "Dikkat");
                 }
             }
         }
         else
         {
             MessageBox.Show("Şifreler Birbiri İle Uyuşmuyor.");
         }
     }
     else
     {
         MessageBox.Show("Alanlar Boş Bırakılamaz.");
     }
 }
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            if (txtAd.Text.Trim() != "" && txtSoyad.Text.Trim() != "" && txtSifre.Text.Trim() != "" && txtTurAd.Text.Trim() != "")
            {
                if (txtSifre.Text == txtSifreTekrar.Text)
                {
                    cKullanici k     = new cKullanici();
                    bool       Sonuc = k.KullaniciKontrol(txtAd.Text, txtSoyad.Text);
                    if (Sonuc)
                    {
                        MessageBox.Show("Bu Kullanıcıi önceden kayıtlı!!");
                    }
                    else
                    {
                        k.KullaniciID   = Convert.ToInt32(txtTurID.Text);
                        k.KullaniciTipi = Convert.ToInt32(txtTurID.Text);
                        k.Adi           = txtAd.Text;
                        k.Soyadi        = txtSoyad.Text;
                        k.Sifre         = txtSifre.Text;
                        Sonuc           = k.KullaniciEkle(k);

                        if (Sonuc)
                        {
                            MessageBox.Show("Kullanıcı Bilgileri Kayıt Edildi");
                            k.KullanicilariGetir(lvKullanicilar);
                            temizle();
                        }
                    }
                }
                else
                {
                    MessageBox.Show("Şifreler Birbiri İle Uyuşmuyor.");
                }
            }
            else
            {
                MessageBox.Show("Alanlar Boş Bırakılamaz.");
            }
        }