public OrderManager()
 {
     InitializeComponent();
     foreach (Order order in bl.GetOrders())
     {
         if (order.Status != OrderStatus.CLIENTNOCARE)
         {
             listView.Items.Add(new OrderViewManager(order, listView));
         }
     }
 }
        public OrdersListHostingUnit(HostingUnit unit, Grid ThisGrid, int index)
        {
            InitializeComponent();
            textBox.DataContext      = unit;
            textBox_Copy.DataContext = unit;
            this.ThisGrid            = ThisGrid;
            this.unit  = unit;
            this.index = index;
            var listOrder = from item in bl.GetOrders()
                            where item.HostingUnitKey == unit.HostingUnitKey && item.Status != OrderStatus.CLIENTNOCARE
                            select item;

            foreach (var order in listOrder)
            {
                listView.Items.Add(new OrderView(order, listOrder.ToList(), listView));
            }
        }