コード例 #1
0
ファイル: Form1.cs プロジェクト: ramazanaras/WCF_Examples
        private void Form1_Load(object sender, EventArgs e)
        {
            //Kendi host ettiğim servis
            //http://wcfservicekatmanli.somee.com/UrunService.svc



            ServiceReference1.UrunServiceClient client  = new ServiceReference1.UrunServiceClient();
            ServiceReference1.UrunDTO[]         datalar = client.Listele();
            dataGridView1.DataSource = datalar;
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: ramazanaras/WCF_Examples
 private void button1_Click(object sender, EventArgs e)
 {
     ServiceReference1.UrunServiceClient client = new ServiceReference1.UrunServiceClient();
     bool sonuc = client.Ekle(new ServiceReference1.UrunDTO
     {
         UrunAdi                  = "TestUrun",
         TedarikciID              = 1,
         KategoriID               = 2,
         BirimdekiMiktar          = "10 boxes x 20 bags",
         Fiyat                    = 20,
         Stok                     = 15,
         YeniSatis                = 3,
         EnAzYenidenSatisMikatari = 1,
         Sonlandi                 = false,
         UrunResimUrl             = "dsdasdss"
     });
 }