using System; using System.Windows.Controls; using Comal.Classes; using InABox.Clients; using InABox.Core; namespace PRSDesktop { /// /// Interaction logic for ConsignmentDock.xaml /// public partial class ConsignmentDock : UserControl, IDockPanel { public ConsignmentDock() { InitializeComponent(); } public void Setup() { } public void Refresh() { Consignments.ItemsSource = null; new Client().Load( new Filter(x => x.Closed).IsEqualTo(DateTime.MinValue), new SortOrder(x => x.EstimatedWarehouseArrival), (c, e) => { Dispatcher.Invoke(() => { Consignments.ItemsSource = c; }); } ); } } }