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