private void btnKayıt_Click(object sender, EventArgs e) { Kullanici kullanici = new Kullanici(); try { kullanici.Ad = txtAd.Text; kullanici.Soyad = txtSoyad.Text; kullanici.Mail = txtMail.Text; kullanici.Sifre = txtPassword.Text; kullanici.DogumTarihi = dtpDogumTarihi.Value; kullanici.Telefon = mtxtTelefon.Text; kullanici.OlusturulmaTarihi = DateTime.Now; kullanici.GuncellenmeTarihi = DateTime.Now; if (kullaniciBLL.KullaniciEkle(kullanici)) { MessageBox.Show("Kaydınız başarılıdır.Lütfen admin onayını bekleyiniz."); Application.Exit(); } else { MessageBox.Show("Kayıt gerçekleştirilemedi."); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }