private void client_GetLicenseBorrowListCompleted(object sender, GetLicenseBorrowListCompletedEventArgs e) { loadbar.Stop(); try { if (e.Error == null) { if (e.Result != null) { BindData(e.Result.ToList(), e.pageCount); } else { BindData(null, 0); } } else { //HtmlPage.Window.Alert(e.Error.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }
private void client_GetLicenseBorrowListCompleted(object sender, GetLicenseBorrowListCompletedEventArgs e) { loadbar.Stop(); try { if (e.Error == null) { if (e.Result != null) { BindData(e.Result.ToList(), e.pageCount); } else { BindData(null,0); } } else { //HtmlPage.Window.Alert(e.Error.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch(Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }