// private readonly KullaniciGiris KullaniciGuncellenecekBilgileri; public Ayarlar() { // KullaniciGuncellenecekBilgileri = KullaniciGuncellenecekBilgileri1; _gizliSoru = new GizliSoruService(); _girisIslemleriService = new GirisIslemleriService(); _calisanService = new CalisanService(); _calisanIletisim = new CalisanIletisimleriDTO(); _iletisimService = new IletisimService(); InitializeComponent(); }
public void CalisanDoldur() { txtAd.Text = KullaniciGiris._girisYapanKullanici.Ad; txtSoyad.Text = KullaniciGiris._girisYapanKullanici.Soyad; txtTCNo.Text = KullaniciGiris._girisYapanKullanici.TCKimlikNo; //txtEmail.Text = KullaniciGiris._girisYapanKullanici.CalisanIletisimleri.Where(x => x.AktifMi == true).FirstOrDefault().EMail; _calisanIletisim = _calisanService.CalisanIletisimBilgileriniGetir(KullaniciGiris._girisYapanKullanici.ID).FirstOrDefault(); txtEmail.Text = _calisanIletisim.Email; txtTel.Text = _calisanIletisim.Telefon; txtAdres.Text = _calisanIletisim.Adres; dtpDogumTarihi.Value = KullaniciGiris._girisYapanKullanici.DogumTarihi; if (KullaniciGiris._girisYapanKullanici.Cinsiyet == Cinsiyet.Kadin) { rdbKadin.Checked = true; } else { rdbErkek.Checked = false; } }