private void bgWorker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) { try { int orderID = Convert.ToInt32(e.Argument); Order or = new Order(); _dvPickListMakeup = or.GetPalletLocationChoice(CurrentContext.UserId, orderID, bgWorker); _dvPickListMakeup.Sort = "StorageTypeID, ShelfID, Column, Row"; // dvPickListMakeup = dvPickListMakeup.Table.DefaultView; List<DataView> list = new List<DataView>(); list.Add(_dvPickListMakeup); list.Add(or._replenishmentList.DefaultView); e.Result = list; } catch(Exception exception) { XtraMessageBox.Show(exception.Message); throw exception; } }
private void bgWorker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) { try { int orderID = Convert.ToInt32(e.Argument); Order or = new Order(); _dvPickListMakeup = or.GetPalletLocationChoice(CurrentContext.UserId, orderID, bgWorker); _dvPickListMakeup.Sort = "StorageTypeID, ShelfID, Column, Row"; // dvPickListMakeup = dvPickListMakeup.Table.DefaultView; List <DataView> list = new List <DataView>(); list.Add(_dvPickListMakeup); list.Add(or._replenishmentList.DefaultView); e.Result = list; } catch (Exception exception) { XtraMessageBox.Show(exception.Message); throw exception; } }