Example #1
0
 private void client_GetLicenseListPagingCompleted(object sender, GetLicenseListPagingCompletedEventArgs e)
 {
     loadbar.Stop();
     try
     {
         if (e.Error != null)
         {
             //HtmlPage.Window.Alert(e.Error.ToString());
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
         else
         {
             if (e.Result != null)
             {
                 BindData(e.Result.ToList(), e.pageCount);
             }
             else
             {
                 BindData(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_GetLicenseListPagingCompleted(object sender, GetLicenseListPagingCompletedEventArgs e)
 {
     loadbar.Stop();
     try
     {
         if (e.Error != null)
         {
             //HtmlPage.Window.Alert(e.Error.ToString());
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
         else
         {
             if (e.Result != null)
             {
                 BindData(e.Result.ToList(),e.pageCount);
             }
             else
             {
                 BindData(null,0);                        
             }                    
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }