Beispiel #1
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     ws.Dispose();
     ws = null;
     this.Close();
 }
Beispiel #2
0
 void LoadByPaging(int page)
 {
     if (ws == null) ws = new WSAdviser();
     int total;
     adviserInfo = ws.Search(new BLLAdviser.Adviser()
     {
         Id = Convert.ToInt32(numberCardNo.Value),
         Name = tbName.Text.Trim(),
         Position = tbPosition.Text.Trim(),
         Mobilephone = tbMPhone.Text.Trim()
     }, ref page, 20, out total);
     paging1.TotalPages = total;
     paging1.CurrentPage = page;
     dgvAdviser.DataSource = adviserInfo;
 }