Example #1
0
 private void client_GetLendingListByUserIdCompleted(object sender, GetLendingListByUserIdCompletedEventArgs e)
 {
     try
     {
         loadbar.Stop();
         if (e.Result != null)
         {
             BindDataGrid(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindDataGrid(null, 0);
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }
Example #2
0
 private void client_GetLendingListByUserIdCompleted(object sender, GetLendingListByUserIdCompletedEventArgs e)
 {
     try
     {
         loadbar.Stop();
         if (e.Result != null)
         {                    
             BindDataGrid(e.Result.ToList(),e.pageCount);
         }
         else
         {
             BindDataGrid(null,0);
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }