private void CreateItemWarehouse(ProductLeftover productLeftover, int count, int weight, ListViewItem item)
        {
            item.SubItems.Add($"{count}");
            item.SubItems.Add($"{weight} {productLeftover.Product.Measures}");
            listView_LeftoversProduct.Items.Add(item);

            if (count <= productLeftover.Product.Limit)
            {
                item.UseItemStyleForSubItems = false;
                item.SubItems[1].ForeColor   = Color.Red;
                item.SubItems[2].ForeColor   = Color.Red;
            }
        }
        private void CreateWarehouse()
        {
            foreach (Order order in orders)
            {
                if (order.Received.Length == 0)
                {
                    continue;
                }

                foreach (OrderItem item in order.orderItems)
                {
                    ProductLeftover productLeftover = new ProductLeftover(
                        item.Product,
                        item.Count,
                        item.Product.Splitting * item.Count);

                    warehouse.Add(productLeftover);
                }
            }
        }