/// <summary>
    /// Resets all data
    /// </summary>
    public void Reset()
    {
        LastWidth.Clear();
        LastThickness.Clear();
        LastRunConfigurationGroups.Clear();
        SalesList.Clear();
        PredictionList.Clear();
        LastRunMachine.Clear();
        PriorityList.Clear();
        foreach (var line in StaticFactoryValuesManager.CoatingLines)
        {
            ScheduledItem[line] = false;
        }
        CurrentWaste = StaticFactoryValuesManager.CurrentWaste;

        if (CurrentInventory == null)
        {
            CurrentInventory = new List <InventoryItem>();
        }
        CurrentInventory.Clear();

        if (PrereqMakeOrders == null)
        {
            PrereqMakeOrders = new List <PrereqMakeOrder>();
        }
        PrereqMakeOrders.Clear();
    }
        public void UpdateActiveInventory()
        {
            ITransaction finder = new ListCurrentInventoryTransaction(sqliteStore);

            finder.Execute();
            CurrentInventory.Clear();
            CurrentInventoryBatchNumberToIdMappings.Clear();
            BubbleSortEntitiesByBatchDisplayName(finder);

            for (int i = 0; i < finder.Results.Count; i++)
            {
                Entity <InventoryBatch> entity = finder.Results[i] as Entity <InventoryBatch>;
                CurrentInventory.Add(entity.NativeModel);
                CurrentInventoryBatchNumberToIdMappings.Add(entity.NativeModel.BatchNumber, entity.SystemId);
            }
        }