Ejemplo n.º 1
0
 private void btnKaydet_Click(object sender, EventArgs e)
 {
     try
     {
         bool success;
         using (var customerSoapClient = new KullaniciServisSoapClient())
         {
             success = customerSoapClient.InsertKullanici(new KullaniciServis.Kullanici()
             {
                 Ad      = txtCalisanAd.Text,
                 Soyad   = txtCalisanSoyad.Text,
                 Adres   = txtAdres.Text,
                 Telefon = txtTelefon.Text,
                 Email   = txtEmail.Text,
                 Sifre   = txtSifre.Text,
                 Rol     = txtRol.Text
             });
             MessageBox.Show("Kaydedildi.");
             temizle();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error happened: " + ex.Message);
     }
 }