private void BtnGuncelle_Click(object sender, EventArgs e) { try { if (Kontrol()) { Kullanici yeniKullanici = kullaniciDoldur(); Veritabani.KullaniciKaydetGuncelle(yeniKullanici, "Guncelle", txtKullaniciAdi.Text); MessageBox.Show("Güncelleme işlemi başarıyla gerçekleşti.", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Close(); } else { MessageBox.Show("Lütfen boş alan bırakmayınız.", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Error); } } catch (Exception a) { MessageBox.Show("Bir hata oluştu:" + a.Message, "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }