private void DataGrid_LoadingDataSource(object sender, Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs e) { queryRequest.ChannelID = viewModel.WebChannel; queryRequest.PagingInfo = new QueryFilter.Common.PagingInfo(); queryRequest.PagingInfo.PageSize = e.PageSize; queryRequest.PagingInfo.PageIndex = e.PageIndex; fpCheckFacade.Query(queryRequest, (obj, args) => { if (args.FaultsHandle()) { return; } oraginList = DynamicConverter <FPCheckEntityVM> .ConvertToVMList(args.Result.Rows); gridFPMaster.ItemsSource = oraginList.DeepCopy(); gridFPMaster.TotalCount = args.Result.TotalCount; }); }
private void DataGrid_ResultList_LoadingDataSource(object sender, Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs e) { queryRequest = viewModel.ConvertVM <CHSetVM, CHQueryFilter>(); queryRequest.PagingInfo = new QueryFilter.Common.PagingInfo(); queryRequest.PagingInfo.PageSize = e.PageSize; queryRequest.PagingInfo.PageIndex = e.PageIndex; queryRequest.PagingInfo.SortBy = e.SortField; fpCheckFacade.Query(queryRequest, (obj, args) => { if (args.FaultsHandle()) { return; } DataGrid_ResultList.ItemsSource = args.Result.Rows; DataGrid_ResultList.TotalCount = args.Result.TotalCount; }); }