private void GetCustomerOrders() { try { MainModuleServiceClient client = new MainModuleServiceClient(); client.GetOrdersByOrderInformationAsync(new OrderInformation() { CustomerId = Customer.CustomerId, DateTimeFrom = DateTime.MinValue, DateTimeTo = DateTime.Now }); client.GetOrdersByOrderInformationCompleted += delegate(object sender, GetOrdersByOrderInformationCompletedEventArgs e) { CustomerOrders.Clear(); e.Result.ToList().ForEach(c => CustomerOrders.Add(c)); }; } catch (Exception excep) { Debug.WriteLine("GetCustomerOrders: Error at Service:" + excep.ToString()); } }
public void Dispose() { _articles.Clear(); _customerOrders.Clear(); _productionOrders.Clear(); _purchaseOrders.Clear(); _customerOrderParts.Clear(); _productionOrderBoms.Clear(); _productionOrderOperations.Clear(); _purchaseOrderParts.Clear(); _stockExchangeDemands.Clear(); _stockExchangeProviders.Clear(); _demandToProviderTable.Clear(); _providerToDemandTable.Clear(); }