private void LoadSaleOrders() { statistics.Add(new Statistic { ThreadId = Thread.CurrentThread.ManagedThreadId, Message = "LoadSaleOrders():Start" }); SaleOrderProxyService.SaleOrderServiceClient client = new SaleOrderProxyService.SaleOrderServiceClient(); IList <SaleOrderProxyService.SaleOrder> products = client.GetSaleOrders(); statistics.Add(new Statistic { ThreadId = Thread.CurrentThread.ManagedThreadId, Message = "LoadSaleOrders():End" }); SaleOrderGridView.DataSource = products.Take(10); SaleOrderGridView.DataBind(); }
private void LoadSaleOrders(IList <SaleOrderProxyService.SaleOrder> saleOrders) { SaleOrderGridView.DataSource = saleOrders.Take(10); SaleOrderGridView.DataBind(); }