private void btnDegistir_Click(object sender, EventArgs e) { cUsta u = new cUsta(); if (txtAdi.Text.Trim() != "" && txtSoyadi.Text.Trim() != "" && txtTCNO.Text.Trim() != "") { u.UstaNo = Convert.ToInt32(txtUstaNo.Text); u.UstaAd = txtAdi.Text; u.UstaSoyad = txtSoyadi.Text; u.TCNo = txtTCNO.Text; u.Adres = txtAdres.Text; u.Telefon = txtTelefon.Text; bool Sonuc = u.UstaGuncelle(u); if (Sonuc) { MessageBox.Show("Usta Bilgileri Güncellendi."); btnKaydet.Enabled = false; btnDegistir.Enabled = true; btnSil.Enabled = true; u.UstaGetir(lvUstalar); Temizle(); txtAdi.Focus(); } else MessageBox.Show("Bilgiler Güncellenemedi !!!"); } else { MessageBox.Show("Bilgiler Boş Geçilemez!!"); } }