void clientFBA_GetStandingBookListByPagingCompleted(object sender, GetStandingBookListByPagingCompletedEventArgs e) { loadbar.Stop(); if (e.Error == null) { ObservableCollection <V_StandingBook> entList = new ObservableCollection <V_StandingBook>(); if (e.Result != null) { entList = e.Result; } dgQueryResult.ItemsSource = entList; dataPager.PageCount = e.pageCount; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "读取数据失败!" + e.Error.Message); } }
void clientFBA_GetStandingBookListByPagingCompleted(object sender, GetStandingBookListByPagingCompletedEventArgs e) { loadbar.Stop(); if (e.Error == null) { ObservableCollection<V_StandingBook> entList = new ObservableCollection<V_StandingBook>(); if (e.Result != null) { entList = e.Result; } dgQueryResult.ItemsSource = entList; dataPager.PageCount = e.pageCount; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "读取数据失败!" + e.Error.Message); } }