Exemplo n.º 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);
     });
 }
Exemplo n.º 2
0
 /// <remarks/>
 public void GetQuesAndAnswerByFilterNewAsync(QuesAndAnswerFilter filter, int index, int size) {
     this.GetQuesAndAnswerByFilterNewAsync(filter, index, size, null);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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]));
 }