Example #1
0
 private void GetDataFromService()
 {
     service.MySoapHeaderValue = SoapHeader();
     qf = new QuesAndAnswerFilter();
     qf.QuesCategoryIDs = types;
     int totalCount = 0;
     service.GetQuesAndAnswerByFilterNew(qf, 1, 10, out totalCount).ToList().ForEach(x =>
     {
         tableItems.Add(x.QuesName);
     });
 }
Example #2
0
 /// <remarks/>
 public void GetQuesAndAnswerByFilterNewAsync(QuesAndAnswerFilter filter, int index, int size) {
     this.GetQuesAndAnswerByFilterNewAsync(filter, index, size, null);
 }
Example #3
0
 /// <remarks/>
 public void GetQuesAndAnswerByFilterNewAsync(QuesAndAnswerFilter filter, int index, int size, object userState) {
     if ((this.GetQuesAndAnswerByFilterNewOperationCompleted == null)) {
         this.GetQuesAndAnswerByFilterNewOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetQuesAndAnswerByFilterNewOperationCompleted);
     }
     this.InvokeAsync("GetQuesAndAnswerByFilterNew", new object[] {
                 filter,
                 index,
                 size}, this.GetQuesAndAnswerByFilterNewOperationCompleted, userState);
 }
Example #4
0
 public QuesAndAnswerEntity[] GetQuesAndAnswerByFilterNew(QuesAndAnswerFilter filter, int index, int size, out int intTotalRecord) {
     object[] results = this.Invoke("GetQuesAndAnswerByFilterNew", new object[] {
                 filter,
                 index,
                 size});
     intTotalRecord = ((int)(results[1]));
     return ((QuesAndAnswerEntity[])(results[0]));
 }