Example #1
0
        private void PrintStockStatus()
        {
            StockList.Items.Clear();

            Dictionary <string, int> InStockCar       = manageStock.GetAllComponents(FileName.CarComponents);
            Dictionary <string, int> InStockBus       = manageStock.GetAllComponents(FileName.BusComponents);
            Dictionary <string, int> InStockTruck     = manageStock.GetAllComponents(FileName.TruckComponents);
            Dictionary <string, int> InStockMotorbike = manageStock.GetAllComponents(FileName.MotorbikeComponents);

            PrintComponent(InStockCar, "Bildelar på lager");
            PrintComponent(InStockBus, "Bussdelar på lager");
            PrintComponent(InStockTruck, "Lastbilsdelar på lager");
            PrintComponent(InStockMotorbike, "Motorcykeldelar på lager");
        }