当前位置: 首页>>代码示例>>C#>>正文


C# ServiceReference1.Service1Client.TimnguoidangAsync方法代码示例

本文整理汇总了C#中ServiceReference1.Service1Client.TimnguoidangAsync方法的典型用法代码示例。如果您正苦于以下问题:C# ServiceReference1.Service1Client.TimnguoidangAsync方法的具体用法?C# ServiceReference1.Service1Client.TimnguoidangAsync怎么用?C# ServiceReference1.Service1Client.TimnguoidangAsync使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ServiceReference1.Service1Client的用法示例。


在下文中一共展示了ServiceReference1.Service1Client.TimnguoidangAsync方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DangThucDon_Load

 private void DangThucDon_Load(object sender, EventArgs e)
 {
     lv_dsketqua.Items.Clear();
     client = new ServiceReference1.Service1Client();
     client.TimnguoidangCompleted += new EventHandler<ServiceReference1.TimnguoidangCompletedEventArgs>(TimnguoidangCallBack);
     client.TimnguoidangAsync(Form1.username);
 }
开发者ID:ntdat1390,项目名称:WCF-v1,代码行数:7,代码来源:DangThucDon.cs

示例2: bt_dangbai_Click

 private void bt_dangbai_Click(object sender, EventArgs e)
 {
     if (ds_Quan.SelectedIndex > 0 && ds_TP.SelectedIndex > 0 && tb_ten.Text != "" && tb_sonha.Text != "" && tb_phuong.Text != "" && tb_duong.Text != "" && tb_dienthoai.Text != "")
     {
         NHCF nhg = new NHCF();
         int IdQuan;
         int IdThanhPho;
         nhg.TenNhaHang = tb_ten.Text;
         nhg.LoaiHinh = tb_loaihinh.Text;
         nhg.SoNha=tb_sonha.Text;
         nhg.Duong = tb_duong.Text;
         nhg.Phuong = tb_phuong.Text;
         IdQuan = ds_Quan.SelectedIndex;
         IdThanhPho = ds_TP.SelectedIndex;
         nhg.DienThoai = tb_dienthoai.Text;
         nhg.Fax = tb_fax.Text;
         nhg.WebSite = tb_website.Text;
         nhg.Email = tb_email.Text;
         nhg.DatChoTruoc = tb_datchotruoc.Text;
         nhg.SoCho= int.Parse(tb_socho.Text);
         nhg.GioPhucVu = tb_giophucvu.Text;
         nhg.MucDich = tb_mucdich.Text;
         nhg.KhongGian = tb_khonggian.Text;
         nhg.BaiDoXe = tb_baidoxe.Text;
         nhg.ThanhToan = tb_thanhtoan.Text;
         nhg.NgonNgu = tb_ngonngu.Text;
         try
         {
             ServiceReference1.Service1Client client = new ServiceReference1.Service1Client();
             client.DangNHCFCompleted += new EventHandler<ServiceReference1.DangNHCFCompletedEventArgs>(DangNHCFCallBack);
             client.DangNHCFAsync(nhg,IdQuan,IdThanhPho,Form1.username);
             client.TimnguoidangCompleted += new EventHandler<ServiceReference1.TimnguoidangCompletedEventArgs>(TimnguoidangCallBack);
             client.TimnguoidangAsync(Form1.username);
         }
         catch
         {
             MessageBox.Show("Lỗi Dịch Vụ !", "Warning: ", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     else
     {
         MessageBox.Show("Bạn phải nhập tên, địa chỉ và số điện thoại của nhà hàng");
     }
 }
开发者ID:ntdat1390,项目名称:WCF-v1,代码行数:44,代码来源:ThongTinNHCF.cs

示例3: ThongTinNHCF_Load

 private void ThongTinNHCF_Load(object sender, EventArgs e)
 {
     client = new ServiceReference1.Service1Client();
     client.LoadTPCompleted += new EventHandler<ServiceReference1.LoadTPCompletedEventArgs>(LoadTPCallBack);
     client.LoadTPAsync();
     client.TimnguoidangCompleted += new EventHandler<ServiceReference1.TimnguoidangCompletedEventArgs>(TimnguoidangCallBack);
     client.TimnguoidangAsync(Form1.username);
 }
开发者ID:ntdat1390,项目名称:WCF-v1,代码行数:8,代码来源:ThongTinNHCF.cs


注:本文中的ServiceReference1.Service1Client.TimnguoidangAsync方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。