Esempio n. 1
0
 private void virtualServerModeSource1_MoreRows(object sender, DevExpress.Data.VirtualServerModeRowsEventArgs e)
 {
     e.RowsTask = System.Threading.Tasks.Task.Factory.StartNew(() =>
     {
         this.OrderVM.GetNextBatch();
         return(new VirtualServerModeRowsTaskResult(this.OrderVM.Orders, this.OrderVM.AreMore, this.OrderVM.Orders));
     }, e.CancellationToken);
 }
Esempio n. 2
0
 private void virtualServerModeSource1_ConfigurationChanged(object sender, DevExpress.Data.VirtualServerModeRowsEventArgs e)
 {
     OrderVM.NewSearch(this.GetFilterFromForm());
     e.UserData = OrderVM.Orders;
 }