Exemple #1
0
 void SoaChannel_GetAgentDataSetListByIdCompleted(object sender, GetAgentDataSetListByIdCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             BindDataGrid(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindDataGrid(null, 0);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
     //SoaChannel.DoClose();//关闭WCF服务
     loadbar.Stop();//读取完数据后,停止动画,隐藏
 }
Exemple #2
0
 void SoaChannel_GetAgentDataSetListByIdCompleted(object sender, GetAgentDataSetListByIdCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             BindDataGrid(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindDataGrid(null, 0);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
     //SoaChannel.DoClose();//关闭WCF服务
     loadbar.Stop();//读取完数据后,停止动画,隐藏
 }