Ejemplo n.º 1
0
        private void btnGüncelle_Click(object sender, EventArgs e)
        {
            try
            {
                using (var kullaniciServis = new KullaniciServisSoapClient())
                {
                    foreach (var item in KuList)
                    {
                        if (int.Parse(txtCalisanSil.Text) == item.KullaniciID)
                        {
                            var musteri = new KullaniciServis.Kullanici()
                            {
                                KullaniciID = item.KullaniciID,
                                Ad          = txtCalisanAd.Text,
                                Soyad       = txtCalisanSoyad.Text,
                                Adres       = txtAdres.Text,
                                Telefon     = txtTelefon.Text,
                                Email       = txtEmail.Text,
                                Sifre       = txtSifre.Text,
                                Rol         = txtRol.Text
                            };

                            kullaniciServis.UpdateKullanici(musteri);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error happened: " + ex.Message);
            }
        }