Example #1
0
        private void btnGuncelle_Click(object sender, EventArgs e)
        {
            //try
            //{
            _personelService.Guncelle(new Personeller
            {
                PersonelID     = (int)txtAdi.Tag,
                Adi            = txtAdi.Text,
                SoyAdi         = txtSoyAdi.Text,
                TCKN           = mskdTCKN.Text,
                Gorevi         = txtGorev.Text,
                DepartmanID    = (int)cmbDepartman.SelectedValue,
                IseGirisTarihi = dtpIseGiris.Value,
                TelNo          = mskdTelNo.Text,
                KullaniciAdi   = txtKullaniciAdi.Text,
                Parola         = txtParola.Text,
                AlisYetkiliMi  = checkAlisYetkisi.Checked
            });
            MessageBox.Show("Güncelleme Başarılı.");
            PersonelListele();
            //}
            //catch (Exception exception)
            //{

            //    MessageBox.Show(exception.Message);
            //}
        }