private void FormuDoldur(Calisan calisan)
 {
     txtId.Text             = calisan.Id.ToString();
     txtAd.Text             = calisan.Ad;
     txtSoyad.Text          = calisan.Soyad;
     txtTelefon.Text        = calisan.Telefon;
     txtAdres.Text          = calisan.Adres;
     cmbSehir.SelectedValue = calisan.SehirKodu;
 }
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            var calisan = new Calisan
            {
                Id        = Convert.ToInt32(txtId.Text),
                Ad        = txtAd.Text,
                Soyad     = txtSoyad.Text,
                Telefon   = txtTelefon.Text,
                Adres     = txtAdres.Text,
                SehirKodu = Convert.ToInt32(cmbSehir.SelectedValue)
            };

            var calisanRepo = new CalisanRepository();

            calisanRepo.Kaydet(calisan);

            CalisanListesiniGetir();

            txtAd.Focus();
        }